mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 05:56:37 +00:00
Remove the generated fields
variant
This commit is contained in:
parent
00e89623be
commit
57e52f4848
@ -332,18 +332,6 @@ class ValidateSourceView(FormView):
|
|||||||
|
|
||||||
class EditSourceMixin:
|
class EditSourceMixin:
|
||||||
model = Source
|
model = Source
|
||||||
# ordered by the model
|
|
||||||
fields = [
|
|
||||||
k for k in dict.fromkeys(map(
|
|
||||||
lambda f: str(f).rsplit('.', 1)[-1],
|
|
||||||
Source._meta.fields
|
|
||||||
)).keys() if k not in frozenset((
|
|
||||||
'created',
|
|
||||||
'has_failed',
|
|
||||||
'last_crawl',
|
|
||||||
'uuid'
|
|
||||||
))
|
|
||||||
]
|
|
||||||
# manual ordering
|
# manual ordering
|
||||||
fields = ('source_type', 'key', 'name', 'directory', 'filter_text', 'filter_text_invert', 'filter_seconds', 'filter_seconds_min',
|
fields = ('source_type', 'key', 'name', 'directory', 'filter_text', 'filter_text_invert', 'filter_seconds', 'filter_seconds_min',
|
||||||
'media_format', 'index_schedule', 'index_videos', 'index_streams', 'download_media', 'download_cap', 'delete_old_media',
|
'media_format', 'index_schedule', 'index_videos', 'index_streams', 'download_media', 'download_cap', 'delete_old_media',
|
||||||
|
Loading…
Reference in New Issue
Block a user