# use inline in fieldsets

**URL:** <https://forum.djangoproject.com/t/use-inline-in-fieldsets/29465>\
**Category:** The Admin\
**Created:** [March 25, 2024, 4:22pm UTC](https://forum.djangoproject.com/t/use-inline-in-fieldsets/29465 "2024-03-25T16:22:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamiddv](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hamiddv/32/19592_2.png) [@hamiddv](https://forum.djangoproject.com/u/hamiddv)\
**Post date:** [March 25, 2024, 4:22pm UTC](https://forum.djangoproject.com/t/use-inline-in-fieldsets/29465/1 "2024-03-25T16:22:53Z")

</div>

hi everyone  
i search for this problem but i dont find somthing useful not in documentation not in previous topics  
i know if i just Definition inlines evrithing will be fine but my inline goes last part but i want it between the parts.  
how can i do that.  
sorry for my bad english if my topic has any problem In terms of english i apologetic

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 25, 2024, 4:47pm UTC](https://forum.djangoproject.com/t/use-inline-in-fieldsets/29465/2 "2024-03-25T16:47:08Z")

</div>

The only way I can see to do this is if you override the appropriate template(s). At a minimum I can see needing to [modify `change_form.html`](https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#overriding-vs-replacing-an-admin-template). (Or, you could do this by modifying the [`add_form_template`](https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.add_form_template) and [`change_form_template`](https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.change_form_template) attributes of the ModelAdmin class to refer to your custom template for only those models where you wish to do this.)

Then, it’s still up to you to indicate how these elements are going to be rendered within those templates. I would suggest you read the existing `change_form.html` template to see how it renders the existing form fields.

---

<div class="post-metadata">

**Author:** ![hamiddv](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/hamiddv/32/19592_2.png) [@hamiddv](https://forum.djangoproject.com/u/hamiddv)\
**Post date:** [March 25, 2024, 4:55pm UTC](https://forum.djangoproject.com/t/use-inline-in-fieldsets/29465/3 "2024-03-25T16:55:10Z")

</div>

tankyou mr ken . but there isn’t any way to do this like fields object in that json? i mean just definition another object?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 25, 2024, 4:57pm UTC](https://forum.djangoproject.com/t/use-inline-in-fieldsets/29465/4 "2024-03-25T16:57:53Z")

</div>

No, this really fits into the case where you’re trying to do something that the admin isn’t designed to do.

The most appropriate answer to your question really is: Don’t use the admin for this. Create your own views. See the first two paragraphs of the docs at [The Django admin site | Django documentation | Django](https://docs.djangoproject.com/en/5.0/ref/contrib/admin/)
