From eb231660b017eab886ecd98828bf0295e36a1112 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 15 Jun 2011 15:13:11 -0500 Subject: 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 --- main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/models.py b/main/models.py index 57e9650..eae55c8 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} -- cgit v1.2.3-24-g4f1b