diff --git a/openedx_learning/lib/collations.py b/openedx_learning/lib/collations.py index 2afdcc37..561b1f31 100644 --- a/openedx_learning/lib/collations.py +++ b/openedx_learning/lib/collations.py @@ -32,11 +32,6 @@ def __init__(self, *args, db_collations=None, db_collation=None, **kwargs): it for Django 3.2 compatibility (see the ``db_collation`` method docstring for details). """ - if db_collation is not None: - raise ValueError( - f"Cannot use db_collation with {self.__class__.__name__}. " - + "Please use a db_collations dict instead." - ) super().__init__(*args, **kwargs) self.db_collations = db_collations or {} @@ -106,7 +101,7 @@ def db_parameters(self, connection): def deconstruct(self): """ How to serialize our Field for the migration file. - + For our mixin fields, this is just doing what the field's superclass would do and then tacking on our custom ``db_collations`` dict data. """