mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-10-30 10:38:58 +03:00
Moved retry mechanism to mixin
This commit is contained in:
@@ -34,14 +34,14 @@ def _get_backend_base():
|
||||
'\'%s\' is not a valid database back-end.'
|
||||
' The module does not define a DatabaseWrapper class.'
|
||||
' Check the value of LOCALIZED_FIELDS_DB_BACKEND_BASE.'
|
||||
))
|
||||
) % base_class_name)
|
||||
|
||||
if isinstance(base_class, Psycopg2DatabaseWrapper):
|
||||
raise ImproperlyConfigured((
|
||||
'\'%s\' is not a valid database back-end.'
|
||||
' It does inherit from the PostgreSQL back-end.'
|
||||
' Check the value of LOCALIZED_FIELDS_DB_BACKEND_BASE.'
|
||||
))
|
||||
) % base_class_name)
|
||||
|
||||
return base_class
|
||||
|
||||
|
||||
Reference in New Issue
Block a user