Skip to content

Commit

Permalink
created ALL aggregate type
Browse files Browse the repository at this point in the history
  • Loading branch information
PirosB3 committed Jun 26, 2014
1 parent ebdb5a1 commit 8dc041f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django/db/models/options.py
Expand Up @@ -33,6 +33,7 @@

# Aggregates
NON_RELATED_FIELDS = DATA | M2M | VIRTUAL
ALL = RELATED_M2M | RELATED_OBJECTS | M2M | DATA | VIRTUAL

NONE = 0b0000
LOCAL_ONLY = 0b0001
Expand Down Expand Up @@ -138,7 +139,7 @@ def non_swapped_models(self):

@lru_cache(maxsize=None)
def _get_field_map(self):
types = RELATED_M2M | RELATED_OBJECTS | M2M | DATA | VIRTUAL
types = ALL
res = {}
for field, names in self.get_new_fields(types=types, recursive=True).iteritems():
for name in names:
Expand Down

0 comments on commit 8dc041f

Please sign in to comment.