(self, *args, **kwargs)
| 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) |
nothing calls this directly
no test coverage detected