Python Forum
Django admin form with parent child
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django admin form with parent child
#1
Hey

I have created a model in django, for categories - with a parent child structure.

But how can I change the look in the admin, of that dropdown?

So that when creating a new category. And I choose the parent category, the dropdown will look something like this:

Parent 1
- Child 1
- Child 2
Parent 2
- Child 1

Any input on this?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django send email - email form Remek953 2 2,295 Sep-18-2020, 07:07 AM
Last Post: Remek953
  How to send notifications to gmail from contact form using Django and pushbullet Justchse 0 1,868 Sep-01-2020, 01:19 PM
Last Post: Justchse
  Send email to gmail after user fill up contact form and getting django database updat Man_from_India 0 2,107 Jan-22-2020, 03:59 PM
Last Post: Man_from_India
  Django admin login problem erfanakbari1 0 2,053 Dec-29-2019, 12:29 PM
Last Post: erfanakbari1
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,310 Jun-30-2019, 12:21 AM
Last Post: scidam
  sending email from admin to user in django anjana 0 3,252 Jun-07-2019, 12:01 PM
Last Post: anjana
  Django - Retrieve form data justantest 0 2,838 May-23-2019, 11:47 AM
Last Post: justantest
  How to add one more similar form by clicking on the current one using JS? Django m0ntecr1st0 0 1,806 Mar-01-2019, 01:02 PM
Last Post: m0ntecr1st0
  popup login form in django uditvashisht 0 3,813 Jan-31-2018, 11:55 PM
Last Post: uditvashisht
  Django REST - input of some form fields is send twice to the backend ann 4 3,998 Jan-03-2018, 05:43 PM
Last Post: ann

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020