Skip to content

Commit

Permalink
Could have sworn South accepting a slug previously.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamby committed Sep 11, 2011
1 parent 63db82a commit 3b61125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_enumfield/fields.py
Expand Up @@ -41,6 +41,6 @@ def south_field_triple(self):
# repr(Item) is not only invalid as an lookup value, it actually causes
# South to generate invalid Python
if self.default != NOT_PROVIDED:
kwargs['default'] = repr(self.default.slug)
kwargs['default'] = self.default.value

return ('django.db.models.fields.IntegerField', args, kwargs)

0 comments on commit 3b61125

Please sign in to comment.