From e9d4f89f39b2af1c50d557eb4792e3cdffff6fc3 Mon Sep 17 00:00:00 2001 From: meeb Date: Tue, 21 Feb 2023 13:55:03 +1100 Subject: [PATCH] fix connection kwarg to db_type() in custom field to be compatible with the postgresql backend, resolves #347 --- tubesync/sync/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/fields.py b/tubesync/sync/fields.py index 465f1d2..b96f4cd 100644 --- a/tubesync/sync/fields.py +++ b/tubesync/sync/fields.py @@ -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):