Пример #1
0
    def validate(self, data):
        data = super().validate(data)
        settings_dict = self.instance.freeze()
        settings_dict.update(data)

        if data.get('confirm_texts') is not None:
            data['confirm_texts'] = LazyI18nStringList(data['confirm_texts'])

        validate_event_settings(self.event, settings_dict)
        return data
Пример #2
0
 def validate(self, data):
     data = super().validate(data)
     settings_dict = self.instance.freeze()
     settings_dict.update(data)
     validate_event_settings(self.event, settings_dict)
     return data