We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b762273 commit deb8ab6Copy full SHA for deb8ab6
1 file changed
ietf/nomcom/managers.py
@@ -1,14 +1,17 @@
1
from django.db import models
2
from django.db.models.query import QuerySet
3
4
+import debug # pyflakes:ignore
5
6
class MixinManager(object):
7
def __getattr__(self, attr, *args):
- try:
8
- return getattr(self.__class__, attr, *args)
9
- except AttributeError:
10
- return getattr(self.get_queryset(), attr, *args)
11
-
+ if attr.startswith('__'):
+ return getattr(self.__class__, attr, *args)
+ else:
+ try:
12
13
+ except AttributeError:
14
+ return getattr(self.get_queryset(), attr, *args)
15
16
class NomineePositionQuerySet(QuerySet):
17
0 commit comments