24 Commits

Author SHA1 Message Date
tcely
1bb6915c16
Expand selected_choices 2026-01-31 00:12:14 -05:00
tcely
9e13870e6f
Use the dict.get function instead 2025-05-17 20:01:51 -04:00
tcely
087e2f2e5d
Fixes for ruff check in fields.py 2025-05-17 10:22:16 -04:00
tcely
623a81acde
Be consistent and explicit with the len check 2025-04-14 20:04:10 -04:00
tcely
0317bc4318
Switch the log to debug level 2025-04-14 20:00:15 -04:00
tcely
44a940faee
fixup: empty lists should work too 2025-04-14 19:52:44 -04:00
tcely
1d153954bc
Try to use invalid values from dumpdata 2025-04-14 19:49:00 -04:00
tcely
cb22eb348d
Additions from the rest container 2025-04-14 18:12:33 -04:00
tcely
debac50ca3
Fix dumpdata output
I want a map of which functions are called,
when they are called,
and from which class they were defined.

These things are still not clear enough for me.
2025-04-14 17:48:37 -04:00
tcely
129ccca258
Handle strings better 2025-03-27 21:39:59 -04:00
tcely
ab9a6e6c76
Remove SponsorBlock_Category from fields.py 2025-02-12 05:46:32 -05:00
tcely
724e632814
Remove debug logging and cache 2025-02-03 09:22:29 -05:00
tcely
4a5660be8d
Preserve the ordering
set made no guarantees about ordering
2025-02-03 09:16:26 -05:00
tcely
d1f078cf0c
Do not store duplicate categories 2025-02-03 08:12:09 -05:00
tcely
ae1042a3d0
Rework sponsorblock_categories and CommaSepChoiceField (#222)
This is a good checkpoint.

* Loading from the database and saving back to the database both work.

* The categories are displayed in the web user interface appropriately.

* Editing the `Source` from the web user interface is working.
2025-02-01 20:57:27 -05:00
meeb
30dbb1031d
Merge pull request #657 from tcely/patch-2
Fix CommaSepChoiceField
2025-01-29 16:45:21 +11:00
tcely
24ac2e1aed
Field expects verbose_name to be first, not separator 2025-01-29 00:23:02 -05:00
tcely
f60c1d7b5b
Move SponsorBlock_Category to fields.py 2025-01-28 21:53:42 -05:00
tcely
e3501fe77a
Fix CommaSepChoiceField
Using the separator that was chosen is the biggest fix.
2025-01-28 19:12:56 -05:00
tcely
de1490c416
Remove unnecessary spaces 2025-01-25 20:11:19 -05:00
meeb
e9d4f89f39 fix connection kwarg to db_type() in custom field to be compatible with the postgresql backend, resolves #347 2023-02-21 13:55:03 +11:00
meeb
7876b48860 use backend agnostic text type for custom field, related to #345 and #338 2023-02-20 14:56:28 +11:00
meeb
2639d911ab change sponsorblock_categories to a textfield, fixing max charlen=255 for mysql, related to #338 2023-02-20 13:24:38 +11:00
KuhnChris
601449ce08 migrate migrations; split fields into fields.py 2023-02-19 23:44:48 +01:00