Ticket #18510: patch

File patch, 1.1 KB (added by Klaas van Schelven, 13 years ago)
  • AUTHORS

    diff --git a/AUTHORS b/AUTHORS
    index ea0b019..16004ed 100644
    a b answer newbie questions, and generally made Django that much better:  
    578578    Gasper Zejn <zejn@kiberpipa.org>
    579579    Jarek Zgoda <jarek.zgoda@gmail.com>
    580580    Cheng Zhang
     581    Klaas van Schelven <klaas@vanschelven.com>
    581582
    582583A big THANK YOU goes to:
    583584
  • django/db/models/options.py

    diff --git a/django/db/models/options.py b/django/db/models/options.py
    index 44f8891..b6bf650 100644
    a b class Options(object):  
    406406                        proxy_cache[RelatedObject(f.rel.to, klass, f)] = None
    407407                    elif self.concrete_model == f.rel.to._meta.concrete_model:
    408408                        proxy_cache[RelatedObject(f.rel.to, klass, f)] = None
    409         self._related_objects_cache = cache
    410         self._related_objects_proxy_cache = proxy_cache
     409        if app_cache_ready():
     410            self._related_objects_cache = cache
     411            self._related_objects_proxy_cache = proxy_cache
    411412
    412413    def get_all_related_many_to_many_objects(self, local_only=False):
    413414        try:
Back to Top