Ticket #17519: 17519.diff

File 17519.diff, 501 bytes (added by jenh, 12 years ago)

Patch to remove exclusion of proxy models from creation of pending references.

  • django/db/backends/creation.py

    diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py
    index fcc6ab7..44a5e58 100644
    a b class BaseDatabaseCreation(object):  
    137137        """
    138138        from django.db.backends.util import truncate_name
    139139
    140         if not model._meta.managed or model._meta.proxy:
     140        if not model._meta.managed:
    141141            return []
    142142        qn = self.connection.ops.quote_name
    143143        final_output = []
Back to Top