We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1aaba50 + 726c94e commit 2ea19d2Copy full SHA for 2ea19d2
AUTHORS.rst
@@ -42,6 +42,7 @@ Authors
42
- Gregory Bataille
43
- Jesse Shapiro
44
- Kevin Foster
45
+- Shane Engelman
46
47
Background
48
==========
simple_history/models.py
@@ -321,7 +321,7 @@ def convert_auto_field(field):
321
must be replaced with an IntegerField.
322
"""
323
connection = router.db_for_write(field.model)
324
- if settings.DATABASES[connection]['ENGINE'] in ('django_mongodb_engine',):
+ if settings.DATABASES[connection].get('ENGINE') in ('django_mongodb_engine',):
325
# Check if AutoField is string for django-non-rel support
326
return models.TextField
327
return models.IntegerField
0 commit comments