Ticket #15962: 15962.diff
File 15962.diff, 698 bytes (added by , 14 years ago) |
---|
-
django/db/models/fields/related.py
217 217 # related object in a table-spanning query. It uses the lower-cased 218 218 # object_name by default, but this can be overridden with the 219 219 # "related_name" option. 220 return self.rel.related_name or self.opts.object_name.lower()220 return self.rel.related_name or (self.opts.object_name.lower() + '_set') 221 221 222 222 class SingleRelatedObjectDescriptor(object): 223 223 # This class provides the functionality that makes the related-object