TabbycatDebate/tabbycat

View on GitHub
tabbycat/utils/widgets.py

Summary

Maintainability
A
0 mins
Test Coverage
from django.forms import TextInput


class SelectPrepopulated(TextInput):
    template_name = 'select_prepopulated_widget.html'

    def __init__(self, data_list, *args, **kwargs):
        super(SelectPrepopulated, self).__init__(*args, **kwargs)
        self.data_list = data_list