Permalink
Browse files

added form_class kwarg override for custom form classes

  • Loading branch information...
1 parent cacdfff commit 3b2bf968aa214191456c7b93941836b38e7f2645 @bradjasper bradjasper committed Mar 8, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 jsonfield/fields.py
  2. +1 −1 setup.py
View
@@ -57,7 +57,8 @@ def value_from_object(self, obj):
def formfield(self, **kwargs):
- kwargs["form_class"] = JSONFormField
+ if "form_class" not in kwargs:
+ kwargs["form_class"] = JSONFormField
field = super(JSONField, self).formfield(**kwargs)
View
@@ -1,6 +1,6 @@
from distutils.core import setup
setup(name='jsonfield',
- version='0.8',
+ version='0.9',
packages=['jsonfield'],
license='MIT',
long_description="A reusable Django field that allows you to store validated JSON in your model.")

0 comments on commit 3b2bf96

Please sign in to comment.