Code

Changes between Version 12 and Version 13 of DescriptorFields


Ignore:
Timestamp:
12/19/05 10:55:52 (9 years ago)
Author:
Simon Willison
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DescriptorFields

    v12 v13  
    117117 
    118118''When you finally open a ticket on this massive change ;) I'll add a comment that you should feel free to steal code from Dejavu, which has used descriptors successfully for two years now: http://projects.amor.org/dejavu/browser/trunk/units.py  -- Robert Brewer'' 
     119 
     120The reason we avoided this in the initial design of Django is that we wanted it to be clear when an action would result in a database query being executed. This explicitness makes it easier to optimise your code - it's obvious when an action will result in an extra query, making it clearer when you should store results in a local variable for later use. -- Simon Willison