From 84c6e6b1b10a67d2cb87f57ad1bc2411122597d1 Mon Sep 17 00:00:00 2001 From: Ronen Lubin <63970571+ronenlu@users.noreply.github.com> Date: Thu, 25 Jan 2024 20:53:34 +0200 Subject: [PATCH] mock mysql method that call the real db conn (#19) --- .../management/commands/atlas-provider-django.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atlas_provider_django/management/commands/atlas-provider-django.py b/atlas_provider_django/management/commands/atlas-provider-django.py index 96b5a06..ea268ec 100644 --- a/atlas_provider_django/management/commands/atlas-provider-django.py +++ b/atlas_provider_django/management/commands/atlas-provider-django.py @@ -67,6 +67,9 @@ def _field_should_be_indexed(self, model, field): return False return not self._is_limited_data_type(field) + def _supports_limited_data_type_defaults(self): + return True + class MockMySQLDatabaseFeatures(MySQLDatabaseFeatures): def __init__(self, *args, **kwargs):