I think with field subclassing, descriptors are a good way to add this sort of thing, but it needn't be backwards imcompatible, because any get_XXX_display could just translate to model.XXX.display, etc.
On Thu, Apr 10, 2008 at 12:05 PM, David Cramer <[EMAIL PROTECTED]> wrote: > Let's move get_FOO_x off of the models and on to their actual objects: > > mymodel.choicefield.display() > mymodel.filedfield.save_file() > > etc. > > Why? > > - Clutters the model namespace > - [Assumption] Performance gain by removing them as it creates extra > lambda functions to attach them. > > I'm guessing this will get turned down since it's a huge backwards > incompatible change, but it's worth a shot :) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
