We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac4833 commit 36db084Copy full SHA for 36db084
django_enum/tests/tests.py
@@ -6210,7 +6210,10 @@ def defaults(self):
6210
def test_db_defaults(self):
6211
6212
obj = DBDefaultTester.objects.create()
6213
- obj.refresh_from_db() # check if this fixes mysql bug
+ # TODO - there seems to be a mysql bug here where DatabaseDefaults
6214
+ # are not refreshed from the db after creation - works on all other platforms
6215
+ if connection.vendor == "mysql":
6216
+ obj.refresh_from_db()
6217
6218
for field, value in self.defaults.items():
6219
obj_field = DBDefaultTester._meta.get_field(field)
0 commit comments