On Saturday 06 May 2006 05:01, Chris Moffitt wrote:

> I know there's been talk about changing/enhancing the admin interface
> but I'm not sure where my idea would fit.  One thing I've noticed is
> that as you add more models to the interface, it can get a little
> more confusing about how they're categorized.  What if we created the
> capability to define the category for each module, then displayed a
> menu in the admin to allow the users to select a specific
> category/option for viewing/editing the modules.
>
> Using something like __category__ = "Blogs" in each model would add a
> link (along the menu bar?) to a blogs category which would contain
> all models related to blogs.  I think this would be useful but am
> curious what others think?  Obviously, it could default to the
> current behavior so it wouldn't be an issue for those that don't need
> it.  I suspect though that there are people out there with a dozen
> (or more) models that could benefit from this kind of feature to help
> make the admin site more manageable as it gets more complex.

The 'Django' way of handling this is to split your models into different 
'apps'.  They then get their own division automatically.  Like you I 
have a lot of models in one app (about 20), and splitting them up 
doesn't make much sense since they logically belong together, and my 
urlconf would be much harder if they were split up.

For me, simply sorting the list of models alphabetically would be a 
sufficient solution to this problem.  I had a patch for this in the 
past but it got lost.  I'll have another go -- I don't know if it would 
be good enough for your situation, but it would be a start.

Luke

-- 
"It is a truth universally acknowledged, that a single man in 
possession of a good fortune, must be in want of a wife." (Jane Austen)

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

--~--~---------~--~----~------------~-------~--~----~
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