Skip to content

Instantly share code, notes, and snippets.

@chriskief

chriskief/forms.py

Created Oct 24, 2013
Embed
What would you like to do?
class EnhancedModelForm(ModelForm):
class Meta:
model = MyModel
fields = ('field1', 'field2')
class SuperEnhancedModelForm(EnhancedModelForm):
class Meta(EnhancedModelForm.Meta):
model = MyModel
fields = ('field3', 'field4')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.