Skip to content

Commit

Permalink
Add introspection rules for HexIntegerField
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Leclanche committed Jan 11, 2014
1 parent c966eb0 commit c74bbf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions push_notifications/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ def formfield(self, **kwargs):
defaults.update(kwargs)
# yes, that super call is right
return super(models.IntegerField, self).formfield(**defaults)

try:
from south.modelsinspector import add_introspection_rules
add_introspection_rules([], ["^push_notifications\.fields\.HexIntegerField"])
except ImportError:
pass

0 comments on commit c74bbf2

Please sign in to comment.