Skip to content

Commit

Permalink
fix ' "is" with a literal' problem
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganland committed Jun 16, 2020
1 parent 2ef7e62 commit 251cbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispatch/api/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def set_context(self, serializer_field):
self.model = serializer_field.parent.Meta.model

def __call__(self, slug):
if self.model.__name__ is 'Subsection':
if self.model.__name__ == 'Subsection':
self.validate_subsection_slug(slug)
elif self.instance is None:
if self.model.objects.filter(slug=slug).exists():
Expand Down

0 comments on commit 251cbba

Please sign in to comment.