On 5/28/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > It seems that "extra" things on a model in whatever form they may take > are either instance-specific, in which case they are Field sub-classes > -- for database-backed data -- or methods, or they are model-specific > (e.g. django-values's Option() class), in which case, editing them via > the per-instance page is illogical, because the results apply to all > instances.
I see what you're saying now. Admittedly, I hadn't done a lot of research into newforms-admin yet, but you're right that it seems most appropriate to make use of ModelAdmin (or a subclass or a replacement thereof) as much as possible, I just didn't know how it would be tied in to the existing system. Right now, it seems that newforms-admin is very model-centric (and with good reason), which does make it a bit of a challenge to add in functionality that's not tied to a particular model. As it stands right now, I can make a ModelAdmin subclass that would allow editing of these values on a per-model basis, but as far as I can tell, it would require users to go into django-values, then pick out a model whose values need editing. I'd just rather be able to tie into the per-model perspective somehow. Something like adding a "values" link next to "add" and "change". All in all, this isn't really an urgent need, since django-values won't really need it until newforms-admin is ready to be merged into trunk. I'm just trying to get the ball rolling so that once I get to that point, it's a bit more finalized. I'm probably not the best person to ask for ideas on how to get it to work though, unfortunately. -Gul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---