MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / __init__

Method __init__

apps/m3u/forms.py:27–35  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

25 ]
26
27 def __init__(self, *args, **kwargs):
28 super().__init__(*args, **kwargs)
29
30 # Set initial value for enable_vod from custom_properties
31 if self.instance and self.instance.custom_properties:
32 custom_props = self.instance.custom_properties
33 if not isinstance(custom_props, dict):
34 custom_props = ensure_custom_properties_dict(custom_props)
35 self.fields['enable_vod'].initial = custom_props.get('enable_vod', False)
36
37 def save(self, commit=True):
38 instance = super().save(commit=False)

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected