mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Fix flake8 'not in'
This commit is contained in:
parent
9476bc12e9
commit
f75eba471e
@ -2429,7 +2429,7 @@ class NotificationTemplateSerializer(BaseSerializer):
|
||||
notification_type = self.instance.notification_type
|
||||
if not notification_type:
|
||||
raise serializers.ValidationError('Missing required fields for Notification Configuration: notification_type')
|
||||
if not 'organization' in attrs:
|
||||
if 'organization' not in attrs:
|
||||
raise serializers.ValidationError("Missing 'organization' from required fields")
|
||||
|
||||
notification_class = NotificationTemplate.CLASS_FOR_NOTIFICATION_TYPE[notification_type]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user