#11451: Retrieving forms fields that are specific to a certian base class ---------------------------+------------------------------------------------ Reporter: gruszczy | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ When I create a mixin from two forms and in one of the base forms I would like to access only fields that are specific to this base class, it can't be easily done. Form class could have some class method, that would return list of fields' names, that are specific for this form.
My motivation for this is that I am using completely different model backend, that is accessed through web services. When I save an object in one of the base classes, I need to pass specifically fields accepted by the web service, but if use {{{for name in self.field}}}, I get all fields from all base classes. I hacked it using dir on a base class, but that's ugly and I would love to use something cleaner. -- Ticket URL: <http://code.djangoproject.com/ticket/11451> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---