summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-15 15:13:11 -0500
committerDan McGee <dan@archlinux.org>2011-06-15 15:14:05 -0500
commiteb231660b017eab886ecd98828bf0295e36a1112 (patch)
treec9efdb49afd1fc827b936b4b532b29c5cfedbc98
parentbbb81e86c4f7327a3c263fffec20f50fe1df9060 (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>
-rw-r--r--main/models.py2
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}