class MediaItemForm(ModelForm):
class Meta:
model = MediaItem
- fields = ('title', 'recorded_from_date', 'recorded_to_date', 'collector',
- 'collection', 'summary', 'scientist', 'contributor', 'author',
- 'topic', 'comment', 'public_access')
-
- exclude = ('copied_from_item')
++ exclude = ('copied_from_item', 'cultural_area', 'ethnic_group', 'language',
++ 'context_comment', 'moda_execut', 'vernacular_style', 'generic_style',
++ 'track', 'collector', 'collector_selection', 'collector_from_collection',
++ 'creator_reference')
def clean_code(self):
return self.cleaned_data['code'] or None