Skip to content

Commit 7fdacf2

Browse files
committed
HexIntegerField: Support GIS MySQL
Uses django.contrib.gis.db.backends.mysql instead of what we expect. Fixes #147
1 parent 67fe37e commit 7fdacf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

push_notifications/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class HexIntegerField(six.with_metaclass(models.SubfieldBase, models.BigIntegerF
4040
"""
4141
def db_type(self, connection):
4242
engine = connection.settings_dict["ENGINE"]
43-
if engine == "django.db.backends.mysql":
43+
if engine.endswith("backends.mysql"):
4444
return "bigint unsigned"
4545
elif engine == "django.db.backends.sqlite":
4646
return "UNSIGNED BIG INT"

0 commit comments

Comments
 (0)