Skip to content

Commit

Permalink
fix: remove db_collation check
Browse files Browse the repository at this point in the history
Tests are failing in openedx on sqlite.
  • Loading branch information
pomegranited authored and ormsbee committed Jun 27, 2023
1 parent 92f739c commit 821a53c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions openedx_learning/lib/collations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down Expand Up @@ -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.
"""
Expand Down

0 comments on commit 821a53c

Please sign in to comment.