fix connection kwarg to db_type() in custom field to be compatible with the postgresql backend, resolves #347

This commit is contained in:
meeb 2023-02-21 13:55:03 +11:00
parent 7876b48860
commit e9d4f89f39
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class CommaSepChoiceField(models.Field):
kwargs['possible_choices'] = self.possible_choices
return name, path, args, kwargs
def db_type(self, _connection):
def db_type(self, connection):
return 'text'
def get_my_choices(self):