Fix flake8 'not in'

This commit is contained in:
Matthew Jones
2016-07-06 16:09:24 -04:00
parent 9476bc12e9
commit f75eba471e

View File

@@ -2429,7 +2429,7 @@ class NotificationTemplateSerializer(BaseSerializer):
notification_type = self.instance.notification_type notification_type = self.instance.notification_type
if not notification_type: if not notification_type:
raise serializers.ValidationError('Missing required fields for Notification Configuration: 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") raise serializers.ValidationError("Missing 'organization' from required fields")
notification_class = NotificationTemplate.CLASS_FOR_NOTIFICATION_TYPE[notification_type] notification_class = NotificationTemplate.CLASS_FOR_NOTIFICATION_TYPE[notification_type]