exclude mtg data field
This commit is contained in:
parent
f4149cabd4
commit
1f8ffb5cba
@ -38,6 +38,7 @@ class CyberLinaBotModuleConfig(TelegramBotModuleConfig):
|
|||||||
'welcome_reactions': JSONEditor(),
|
'welcome_reactions': JSONEditor(),
|
||||||
'inline_reactions': JSONEditor(),
|
'inline_reactions': JSONEditor(),
|
||||||
}
|
}
|
||||||
|
EXCLUDE_FIELDS = '_mtg_data',
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
@ -63,7 +63,7 @@ def get_config_form(mdl):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = mdl
|
model = mdl
|
||||||
exclude = ()
|
exclude = mdl.EXCLUDE_FIELDS if hasattr(mdl, 'EXCLUDE_FIELDS') else ()
|
||||||
widgets = mdl.CUSTOM_WIDGETS if hasattr(mdl, 'CUSTOM_WIDGETS') else {}
|
widgets = mdl.CUSTOM_WIDGETS if hasattr(mdl, 'CUSTOM_WIDGETS') else {}
|
||||||
return ConfigForm
|
return ConfigForm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user