Skip to content

Commit

Permalink
_validation does not need to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
terencehonles committed Aug 31, 2017
1 parent 248afdb commit aab6eba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions extras_mongoengine/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ def prepare_query_value(self, op, value):
def validate(self, value):
return super(EnumField, self).validate(self.__get_value(value))

def _validate(self, value, **kwargs):
return super(EnumField, self)._validate(
self.enum(self.__get_value(value)), **kwargs)


class IntEnumField(EnumField, IntField):
"""A variation on :class:`EnumField` for only int containing enumeration.
Expand Down

0 comments on commit aab6eba

Please sign in to comment.