mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +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 ''
|
return ''
|
||||||
if data.all_choice in value:
|
if data.all_choice in value:
|
||||||
return data.all_choice
|
return data.all_choice
|
||||||
return data.separator.join(value)
|
return data.separator.join(set(reversed(value)))
|
||||||
|
|
||||||
# extra functions not used by any parent classes
|
# extra functions not used by any parent classes
|
||||||
def get_all_choices(self):
|
def get_all_choices(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user