mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-04-08 17:30:59 +00:00
Fix Python 2.7 compatibility
This commit is contained in:
parent
00562c4d88
commit
df9c4b66fa
2 changed files with 7 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
'''
|
||||
Queryset.
|
||||
|
||||
|
|
@ -259,7 +261,7 @@ class EavQuerySet(QuerySet):
|
|||
Pass *args* and *kwargs* through ``eav_filter``, then pass to
|
||||
the ``models.Manager`` filter method.
|
||||
'''
|
||||
return super().filter(*args, **kwargs).distinct()
|
||||
return super(self.__class__, self).filter(*args, **kwargs).distinct()
|
||||
|
||||
@eav_filter
|
||||
def exclude(self, *args, **kwargs):
|
||||
|
|
@ -267,7 +269,7 @@ class EavQuerySet(QuerySet):
|
|||
Pass *args* and *kwargs* through ``eav_filter``, then pass to
|
||||
the ``models.Manager`` exclude method.
|
||||
'''
|
||||
return super().exclude(*args, **kwargs).distinct()
|
||||
return super(self.__class__, self).exclude(*args, **kwargs).distinct()
|
||||
|
||||
@eav_filter
|
||||
def get(self, *args, **kwargs):
|
||||
|
|
@ -275,4 +277,4 @@ class EavQuerySet(QuerySet):
|
|||
Pass *args* and *kwargs* through ``eav_filter``, then pass to
|
||||
the ``models.Manager`` get method.
|
||||
'''
|
||||
return super().get(*args, **kwargs)
|
||||
return super(self.__class__, self).get(*args, **kwargs)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
'''
|
||||
Validtors.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue