diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-15 15:13:11 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-15 15:14:05 -0500 |
commit | eb231660b017eab886ecd98828bf0295e36a1112 (patch) | |
tree | c9efdb49afd1fc827b936b4b532b29c5cfedbc98 /main/models.py | |
parent | bbb81e86c4f7327a3c263fffec20f50fe1df9060 (diff) |
PositiveBigIntegerField: set get_internal_type() correctly
This is a key for Django to return the DB type that matches this value.
Since we are basically just ripping off a BigIntegerField, we can use
the database types for it.
This makes my prior checked in migrations actually work on MySQL.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r-- | main/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py index 57e9650e..eae55c8b 100644 --- a/main/models.py +++ b/main/models.py @@ -15,7 +15,7 @@ class PositiveBigIntegerField(models.BigIntegerField): _south_introspects = True def get_internal_type(self): - return "PositiveBigIntegerField" + return "BigIntegerField" def formfield(self, **kwargs): defaults = {'min_value': 0} |