Saturday, June 30, 2012

Re: adding fields into another apps forms (in plugin style)

I think he wants to load the plugins in a dynamic way. If you look how the admin package of django works you will have the answer:

The class AdminSite has a method register, which adds a model, on which the site builds itself. So each plugin can register its own admin stuff in a admin module.

Your task is to write your own class that registers plugins and to make a global instance of it.

Am Mittwoch, 19. Januar 2011 15:38:07 UTC+1 schrieb Shawn Milochik:
You can just subclass the form or modelform.

Shawn

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/tkvtGsvvXm8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment