Tuesday, September 4, 2012

Re: To Use or Not to Use the admin backend

On Wed, Sep 5, 2012 at 1:50 AM, Tomas Neme <lacrymology@gmail.com> wrote:
> I've a question about this. I tried to do something like this, but
> using the main capabilities and hacking on the ModelAdmin classes,
> changing the formsets and the like, and reusing as much as possible,
> including of course the admin templates.
>
> Of course, it wasn't possible. I was trying to do something as simple
> as a double-indirection inline, a second-level foreign key, and ended
> up just showing a link to the other model's admin page, creating,
> indeed, a complex workflow where none was needed.
>
> To what extent and how particularly would one need override a specific
> admin page to do this kind of thing? Is reusing the templates at all
> possible if you've customized things? Maybe the templates yes, but the
> ModelAdmin views are impossible, I was in a hurry so I wasn't able to
> do a good diagnosis of what would have been needed to do this.

I don't know either mate - I'm going to have to learn, and probably by
trial and error - there's not a lot of good documentation about this
use case or this need. I presume it's like the man pages, or Deleuze
and Guattari - impregnable to the neophyte, but once you no longer
really need them, they make sense. Is ok, here comes learning!

cheers
L.

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