On Mon, 2006-10-02 at 18:06 -0400, Paul Barry wrote:
> Is the admin interface customizable at all?  Specifically:
> 
> 1.  Can you create a workflow, like step 1, step 2, step 3, then save object?
> 
> 2.  Can you create a lookup select for a foreign key?  For example, if
> I have an object that has a ForeignKey and there are 10,000 instances
> of the foreign key, I would like to pop-up a new window, have the user
> search for the foreign key instance, and then set the value back on
> the original form, because:
> 
> a)  loading 10,000 options in a select will be slow
> b)  an admin user will most likely not be able to find the specific
> foreign key instance they are looking for in a drop-down.  This can be
> true with even smaller lists, where you might want to look for
> instance based on a couple of properties, such as name or
> date_published.
> 
> It seems to me like the admin interface is kind of like you get what
> you get and if it doesn't do what you need, you have to build the
> forms for that object by creating the templates, manipulators, view,
> etc.  You can't extend, modify, etc the admin stuff at all.   Is that
> true?

More or less correct. You get a little bit of choice as to how fields
are layed out and some inclusion of related fields, etc, but if you want
to change the workflow you can't do that in the admin interface as it
stands.

However, if you were really keen, it would not be too hard to look at
the URL and view flow of the admin interface and drop in your URL
dispatcher and views for intermediate steps. You can do this without
changing the source just by making sure your URL dispatcher is processed
before the admin one. That will take a bit of work with a pencil and
paper working out the flow from view to view, but it wouldn't be
impossible.

The design of the admin is fairly modular, so replacing varioius parts
of it with overrides looks possible.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to