mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 13:06:34 +00:00
Do not store duplicate categories
This commit is contained in:
parent
869e04dd53
commit
d1f078cf0c
@ -180,7 +180,7 @@ class CommaSepChoiceField(models.CharField):
|
||||
return ''
|
||||
if data.all_choice in value:
|
||||
return data.all_choice
|
||||
return data.separator.join(value)
|
||||
return data.separator.join(set(reversed(value)))
|
||||
|
||||
# extra functions not used by any parent classes
|
||||
def get_all_choices(self):
|
||||
|
Loading…
Reference in New Issue
Block a user