Skip to content

Instantly share code, notes, and snippets.

@madhusudancs
Created March 27, 2014 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhusudancs/9797870 to your computer and use it in GitHub Desktop.
Save madhusudancs/9797870 to your computer and use it in GitHub Desktop.
...
from django import forms as djangoforms
from django.utils import translation
...
...
...
class ModelForm(djangoforms.ModelForm):
"""Django ModelForm class which uses our implementation of BoundField.
"""
__metaclass__ = ModelFormMetaclass
SUBMIT_BUTTON_TEXT = translation.ugettext('Submit')
def __init__(self, bound_field_class, name=None, **kwargs):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment