We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad036ad commit 05802f4Copy full SHA for 05802f4
src/django_mysql/models/fields/sets.py
@@ -163,6 +163,7 @@ def check(self, **kwargs: Any) -> list[checks.CheckMessage]:
163
and isinstance(self.base_field, CharField)
164
and self.size
165
):
166
+ assert self.base_field.max_length is not None
167
max_size = (
168
# The chars used
169
(self.size * (self.base_field.max_length))
0 commit comments