Yes it is.. but it might require some hacks .
The idea is to provide the List of children objects as an initial to the 
formset being created.
Till 1.11 there was no "clean" way to do it.. you have to override the 
_create_formsets on model admin
You may also need to filter those initials so there is no duplication in 
the case of /change as opposed to the add.

Good luck

On Sunday, December 17, 2017 at 2:43:21 PM UTC+2, IL Ka wrote:
>
> 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+unsubscr...@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/291efda4-cae1-47a3-82ef-25a31bf063c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to