class Meta: model = IssueRevision fields = get_issue_field_list() fields.insert(fields.index('year_on_sale'), 'on_sale_date_help') fields.insert(fields.index('year_on_sale'), 'on_sale_date') fields.insert(fields.index('keywords') + 1, 'turned_off_help') widgets = { 'number': forms.TextInput(attrs={ 'class': 'wide', 'autofocus': '' }), 'title': forms.TextInput(attrs={'class': 'wide'}), 'volume': forms.TextInput(attrs={'class': 'wide'}), 'publication_date': forms.TextInput(attrs={'class': 'wide'}), 'key_date': forms.TextInput(attrs={'class': 'key_date'}), 'indicia_frequency': forms.TextInput(attrs={'class': 'wide'}), 'price': forms.TextInput(attrs={'class': 'wide'}), 'editing': forms.TextInput(attrs={'class': 'wide'}), 'isbn': forms.TextInput(attrs={'class': 'wide'}), 'barcode': forms.TextInput(attrs={'class': 'wide'}), 'rating': forms.TextInput(attrs={'class': 'wide'}), 'page_count': PageCountInput, 'brand': BrandEmblemSelect, } labels = ISSUE_LABELS help_texts = ISSUE_HELP_TEXTS
class Meta: model = IssueRevision fields = get_issue_field_list() exclude = ['number'] widgets = { 'indicia_frequency': forms.TextInput(attrs={'class': 'wide'}), 'editing': forms.TextInput(attrs={'class': 'wide'}), 'page_count': PageCountInput, 'brand': BrandEmblemSelect } labels = ISSUE_LABELS help_texts = ISSUE_HELP_TEXTS