Ticket #4945: manager-patch.diff
File manager-patch.diff, 516 bytes (added by , 17 years ago) |
---|
-
manager.py
3 3 from django.db.models import signals 4 4 from django.db.models.fields import FieldDoesNotExist 5 5 6 # Size of each "chunk" for get_iterator calls.7 # Larger values are slightly faster at the expense of more storage space.8 GET_ITERATOR_CHUNK_SIZE = 1009 10 6 def ensure_default_manager(sender): 11 7 cls = sender 12 8 if not hasattr(cls, '_default_manager'):