On 5/4/07, Mi Reflejo <[EMAIL PROTECTED]> wrote: > I just figured i can use a callback function in form_for_model. Something > like: > > def uform_callback(f, **kwargs): > "tell forms to ignore other fields differents for visible_field" > visible_fields = ['username', 'password', 'first_name', 'last_name'] > if f.name not in visible_fields: > return None > return f.formfield(**kwargs) > > Is there another elegant way? :)
Right now - no. However, I'm trying to get a discussion going on the dev list about this issue. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

