fix connection kwarg to db_type() in custom field to be compatible with the postgresql backend, resolves #347
This commit is contained in:
parent
7876b48860
commit
e9d4f89f39
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue