Changeset 8730 for django/trunk/django/db/models
- Timestamp:
- 08/29/08 23:52:56 (3 months ago)
- Files:
-
- django/trunk/django/db/models/options.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/options.py
r8616 r8730 281 281 """ 282 282 Returns a list of all field names that are possible for this model 283 (including reverse relation names). 283 (including reverse relation names). This is used for pretty printing 284 debugging output (a list of choices), so any internal-only field names 285 are not included. 284 286 """ 285 287 try: … … 289 291 names = cache.keys() 290 292 names.sort() 291 return names 293 # Internal-only names end with "+" (symmetrical m2m related names being 294 # the main example). Trim them. 295 return [val for val in names if not val.endswith('+')] 292 296 293 297 def init_name_map(self):
