Sunday, December 17, 2017

DjangoAdmin Inline with list of links to children, not their forms. Is it possible?

Hello.
I have categories and objects and object has foreign key to the category.

I want to give user ability to open category in admin and see list of objects.

``StackedInline`` along with ``show_change_link = True`` solves it. However, it displays form for every single object in category. My object has 10 fields rendering this UI unusable.
What I want to have:

Category1 Page:
* Category Form itself
* List of objects:
* Object1 [change] [edit]
* Object2 [change] [edit]
...
* ObjectN [change] [edit]
* [add new]

Is it possible? 

Ilya.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e3c900fa-9255-4fdf-8e49-2b829aa87ec6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment