# The Admin

**URL:** https://forum.djangoproject.com/c/users/the-admin/20.md

[Latest](https://forum.djangoproject.com/latest.md) · [Categories](https://forum.djangoproject.com/categories.md) · [Tags](https://forum.djangoproject.com/tags.md)

---

## [About the The Admin category](https://forum.djangoproject.com/t/about-the-the-admin-category/17684)

<div class="topic-metadata">

**Author:** [@andrewgodwin](https://forum.djangoproject.com/u/andrewgodwin)\
**Replies:** 0\
**Last updated:** [December 18, 2022, 1:47am UTC](https://forum.djangoproject.com/t/about-the-the-admin-category/17684 "2022-12-18T01:47:22Z")

</div>

For questions or discussions on modifying or enhancing the Django Admin app.

---

## [Can Django Admin Add a Model Field Search Form？](https://forum.djangoproject.com/t/can-django-admin-add-a-model-field-search-form/45633)

<div class="topic-metadata">

**Author:** [@wenwennami](https://forum.djangoproject.com/u/wenwennami)\
**Replies:** 1\
**Last updated:** [August 20, 2026, 11:14pm UTC](https://forum.djangoproject.com/t/can-django-admin-add-a-model-field-search-form/45633 "2026-08-20T23:14:53Z")

</div>

Can Django Admin Add a Model Field Search Form？ Currently, There Is Only a Search Input Box An a list\_filter. Search InputBox Search search\_fields, list\_filter Act As a Html \<a\> link. Everty Time I Click The Link, It S…

---

## [Please help me understand the style change of admin page in 6.1](https://forum.djangoproject.com/t/please-help-me-understand-the-style-change-of-admin-page-in-6-1/45736)

<div class="topic-metadata">

**Author:** [@yyzz](https://forum.djangoproject.com/u/yyzz)\
**Replies:** 3\
**Last updated:** [August 12, 2026, 6:44pm UTC](https://forum.djangoproject.com/t/please-help-me-understand-the-style-change-of-admin-page-in-6-1/45736 "2026-08-12T18:44:40Z")

</div>

Before 6.1, form fields are shown next to their labels in the same row. Since 6.1, “Form fields are now shown below their respective labels instead of next to them.” The old style looks organized and space-efficient, e…

---

## [Idea: to do the django admin more ajax-native](https://forum.djangoproject.com/t/idea-to-do-the-django-admin-more-ajax-native/45680)

<div class="topic-metadata">

**Author:** [@mia](https://forum.djangoproject.com/u/mia)\
**Replies:** 0\
**Last updated:** [August 5, 2026, 6:38pm UTC](https://forum.djangoproject.com/t/idea-to-do-the-django-admin-more-ajax-native/45680 "2026-08-05T18:38:54Z")

</div>

I see, that people think about ajax in the admin from time to time Django Admin Ajax List view and delete?. I think it would be great highly demanded built-in feature if you allow users to define on list view what fields…

---

## [Reordering list of models in Django Admin](https://forum.djangoproject.com/t/reordering-list-of-models-in-django-admin/5300)

<div class="topic-metadata">

**Author:** [@clrke](https://forum.djangoproject.com/u/clrke)\
**Replies:** 12\
**Last updated:** [July 8, 2026, 3:30pm UTC](https://forum.djangoproject.com/t/reordering-list-of-models-in-django-admin/5300 "2026-07-08T15:30:36Z")

</div>

Wouldn’t it be great if sorting models in the Django Admin is just as easy as setting a priority number in your ModelAdmin subclass? In my project, I made a BaseAdmin class that has an admin\_priority property: class Ba…

---

## [HTML and JSON fields formatting in Admin's ModelForm](https://forum.djangoproject.com/t/html-and-json-fields-formatting-in-admins-modelform/27690)

<div class="topic-metadata">

**Author:** [@tortue-codage](https://forum.djangoproject.com/u/tortue-codage)\
**Replies:** 3\
**Last updated:** [June 6, 2026, 6:54pm UTC](https://forum.djangoproject.com/t/html-and-json-fields-formatting-in-admins-modelform/27690 "2026-06-06T18:54:04Z")

</div>

Hey everyone! I’m planning to apply indentation and syntax highlighting for the two mentioned fields’ contents of a model in my App’s Admin UI. Both of the fields should remain read-only. I was thinking of extending th…

---

## [i have bug on reset password link](https://forum.djangoproject.com/t/i-have-bug-on-reset-password-link/45203)

<div class="topic-metadata">

**Author:** [@Ahmad-Coder-0](https://forum.djangoproject.com/u/Ahmad-Coder-0)\
**Replies:** 8\
**Last updated:** [June 1, 2026, 4:40pm UTC](https://forum.djangoproject.com/t/i-have-bug-on-reset-password-link/45203 "2026-06-01T16:40:24Z")

</div>

hello guys i’am got a big bug how fix it i when type email address and click to django send reset password to send reset password link in console i get this #############################################################…

---

## [Does Django Admin support dynamic loading of category-based attributes with predefined values?](https://forum.djangoproject.com/t/does-django-admin-support-dynamic-loading-of-category-based-attributes-with-predefined-values/44790)

<div class="topic-metadata">

**Author:** [@suportinstegram0-tec](https://forum.djangoproject.com/u/suportinstegram0-tec)\
**Replies:** 1\
**Last updated:** [March 30, 2026, 3:56pm UTC](https://forum.djangoproject.com/t/does-django-admin-support-dynamic-loading-of-category-based-attributes-with-predefined-values/44790 "2026-03-30T15:56:14Z")

</div>

I’m working on a project using Django where I have a category-based system. Each category has its own set of dynamic attributes. When creating a new product: The category is selected first. Based on the selected categ…

---

## [How to get the value of rendered field in django admin](https://forum.djangoproject.com/t/how-to-get-the-value-of-rendered-field-in-django-admin/44399)

<div class="topic-metadata">

**Author:** [@mia](https://forum.djangoproject.com/u/mia)\
**Replies:** 14\
**Last updated:** [March 24, 2026, 10:05am UTC](https://forum.djangoproject.com/t/how-to-get-the-value-of-rendered-field-in-django-admin/44399 "2026-03-24T10:05:54Z")

</div>

I create pytest test and want to get rendered field which logic can change depending from user. It can be tricky due to a singleton problem in the admin How to solve the singleton problem in Django ModelAdmin. - DEV Comm…

---

## [Django admin site looks off](https://forum.djangoproject.com/t/django-admin-site-looks-off/44257)

<div class="topic-metadata">

**Author:** [@venteria](https://forum.djangoproject.com/u/venteria)\
**Replies:** 6\
**Last updated:** [February 24, 2026, 11:32am UTC](https://forum.djangoproject.com/t/django-admin-site-looks-off/44257 "2026-02-24T11:32:38Z")

</div>

Hey, I’m making my 2nd Django site and I just accessed the admin site for the first time and it looks off. I’ve done collectstatic, I’ve done hard-refreshes, I’ve opened in different browsers, cleared cache, etc. Nothing…

---

## [How to add CustomUser fields in admin?](https://forum.djangoproject.com/t/how-to-add-customuser-fields-in-admin/9318)

<div class="topic-metadata">

**Author:** [@shmish](https://forum.djangoproject.com/u/shmish)\
**Replies:** 3\
**Last updated:** [January 29, 2026, 12:37am UTC](https://forum.djangoproject.com/t/how-to-add-customuser-fields-in-admin/9318 "2026-01-29T00:37:33Z")

</div>

For my project I have a CustomUser which has two new fields in it. When I go to the Admin page, these fields show when listing the Users. However, when I go to change a user, the only fields I can change are username, p…

---

## [Django admin - custom login](https://forum.djangoproject.com/t/django-admin-custom-login/44007)

<div class="topic-metadata">

**Author:** [@luca-marian](https://forum.djangoproject.com/u/luca-marian)\
**Replies:** 1\
**Last updated:** [January 23, 2026, 1:29pm UTC](https://forum.djangoproject.com/t/django-admin-custom-login/44007 "2026-01-23T13:29:31Z")

</div>

Hello, I have a Django application with a large number of users, organized into groups. I use LDAP authentication, but I also need regular username/password login for some staff members and superusers, so I am using mul…

---

## [Help Understanding Django admin widgets Autocomplete](https://forum.djangoproject.com/t/help-understanding-django-admin-widgets-autocomplete/43999)

<div class="topic-metadata">

**Author:** [@ManoarySarobidy](https://forum.djangoproject.com/u/ManoarySarobidy)\
**Replies:** 0\
**Last updated:** [January 22, 2026, 10:04am UTC](https://forum.djangoproject.com/t/help-understanding-django-admin-widgets-autocomplete/43999 "2026-01-22T10:04:36Z")

</div>

Hello everyone, Wish you all a happy new year. So recently I decided To enhance my django admin app. I have a model that have two foreign key (let’s say Responsable and Client) inside him so like a Many to Many relati…

---

## [Working on contrib.admin UI feature (drag and drop ordering)](https://forum.djangoproject.com/t/working-on-contrib-admin-ui-feature-drag-and-drop-ordering/43978)

<div class="topic-metadata">

**Author:** [@smallsaucepan](https://forum.djangoproject.com/u/smallsaucepan)\
**Replies:** 0\
**Last updated:** [January 21, 2026, 10:18am UTC](https://forum.djangoproject.com/t/working-on-contrib-admin-ui-feature-drag-and-drop-ordering/43978 "2026-01-21T10:18:02Z")

</div>

(topic deleted by author)

---

## [How To Configure Parent/Child relationship in the Admin where the parent and child models are the same - Foreign key back to self](https://forum.djangoproject.com/t/how-to-configure-parent-child-relationship-in-the-admin-where-the-parent-and-child-models-are-the-same-foreign-key-back-to-self/43958)

<div class="topic-metadata">

**Author:** [@TonyFlury](https://forum.djangoproject.com/u/TonyFlury)\
**Replies:** 4\
**Last updated:** [January 19, 2026, 11:38am UTC](https://forum.djangoproject.com/t/how-to-configure-parent-child-relationship-in-the-admin-where-the-parent-and-child-models-are-the-same-foreign-key-back-to-self/43958 "2026-01-19T11:38:27Z")

</div>

I have this model : class Categories(models.Model): parent = models.ForeignKey('self', on\_delete=models.CASCADE, null=True, blank=True) category\_name = models.CharField(max\_length=100, unique=True) credit\_de…

---

## [\`formfield\_for\_foreignkey\` doesn't change the label of a field in inline](https://forum.djangoproject.com/t/formfield-for-foreignkey-doesnt-change-the-label-of-a-field-in-inline/43883)

<div class="topic-metadata">

**Author:** [@Jrol123](https://forum.djangoproject.com/u/Jrol123)\
**Replies:** 0\
**Last updated:** [January 9, 2026, 1:27pm UTC](https://forum.djangoproject.com/t/formfield-for-foreignkey-doesnt-change-the-label-of-a-field-in-inline/43883 "2026-01-09T13:27:55Z")

</div>

Hey, everyone! I’ve got a problem, that i need to rename a field in a specific inline, that uses both form and a formset, but it doesn’t change at all. Usage: Admin Panel, no specific views. Inline: class AuthorOnlyI…

---

## [Get current user in form (formset)](https://forum.djangoproject.com/t/get-current-user-in-form-formset/43816)

<div class="topic-metadata">

**Author:** [@Jrol123](https://forum.djangoproject.com/u/Jrol123)\
**Replies:** 12\
**Last updated:** [January 5, 2026, 10:44am UTC](https://forum.djangoproject.com/t/get-current-user-in-form-formset/43816 "2026-01-05T10:44:20Z")

</div>

Hi! I want to fill in the first line of my inline with current user, but don’t really understand how to do so. Current inline and formset: class AuthorInlineFormset(BaseGenericInlineFormSet): def \_\_init\_\_(self, \*a…

---

## [Help: Django 4.2 admin page CSS issue](https://forum.djangoproject.com/t/help-django-4-2-admin-page-css-issue/20196)

<div class="topic-metadata">

**Author:** [@ZorinArch](https://forum.djangoproject.com/u/ZorinArch)\
**Replies:** 53\
**Last updated:** [January 3, 2026, 2:00pm UTC](https://forum.djangoproject.com/t/help-django-4-2-admin-page-css-issue/20196 "2026-01-03T14:00:11Z")

</div>

Hi, I upgrade from dgango 4.1 to v4.2 and when i open django admin page it look like below: i open admin page on different browsers and the problem still. what cause the problem?

---

## [Django admin very slow with many to many and several foreign key relationships](https://forum.djangoproject.com/t/django-admin-very-slow-with-many-to-many-and-several-foreign-key-relationships/41450)

<div class="topic-metadata">

**Author:** [@mkleinschmidt](https://forum.djangoproject.com/u/mkleinschmidt)\
**Replies:** 2\
**Last updated:** [December 30, 2025, 9:01am UTC](https://forum.djangoproject.com/t/django-admin-very-slow-with-many-to-many-and-several-foreign-key-relationships/41450 "2025-12-30T09:01:26Z")

</div>

Hi, I have the following three models in a many to many relationship: class Division(models.Model): uuid = models.UUIDField(default=uuid.uuid4, editable=False) add\_date = models.DateTimeField(auto\_now\_add=True)…

---

## [Default ordering using annotated fields](https://forum.djangoproject.com/t/default-ordering-using-annotated-fields/43716)

<div class="topic-metadata">

**Author:** [@Tikrong](https://forum.djangoproject.com/u/Tikrong)\
**Replies:** 2\
**Last updated:** [December 16, 2025, 12:25pm UTC](https://forum.djangoproject.com/t/default-ordering-using-annotated-fields/43716 "2025-12-16T12:25:12Z")

</div>

Hello! I am building an app with an admin panel and I needed to provide default sorting using annotated field. Was surprised, when it didn’t worked. Did a quick search and as I see it, this fails because my '.ordering’ o…

---

## [Understanding of User \`is\_staff\` field.](https://forum.djangoproject.com/t/understanding-of-user-is-staff-field/35838)

<div class="topic-metadata">

**Author:** [@DoOrQuit](https://forum.djangoproject.com/u/DoOrQuit)\
**Replies:** 9\
**Last updated:** [December 11, 2025, 4:50pm UTC](https://forum.djangoproject.com/t/understanding-of-user-is-staff-field/35838 "2025-12-11T16:50:56Z")

</div>

Hello everyone. I’m facing some difficulties understanding staff permissions for User model. It is clear that is\_superuser grants all permissions (including admin features). However I can’t understand the role of is\_st…

---

## [Hide Django objects on Django Admin UI](https://forum.djangoproject.com/t/hide-django-objects-on-django-admin-ui/15650)

<div class="topic-metadata">

**Author:** [@MrEcho92](https://forum.djangoproject.com/u/MrEcho92)\
**Replies:** 7\
**Last updated:** [December 11, 2025, 3:39pm UTC](https://forum.djangoproject.com/t/hide-django-objects-on-django-admin-ui/15650 "2025-12-11T15:39:10Z")

</div>

I want to implement some logic to hide some objects via Django Admin. This will hide few instances from list of Django Model object. Please advise how I should approach this? Let me know if you need info?

---

## [How will we can rewrite the UI and permission for the admin's panel?](https://forum.djangoproject.com/t/how-will-we-can-rewrite-the-ui-and-permission-for-the-admins-panel/43520)

<div class="topic-metadata">

**Author:** [@Tryd0g0lik](https://forum.djangoproject.com/u/Tryd0g0lik)\
**Replies:** 9\
**Last updated:** [November 28, 2025, 11:00am UTC](https://forum.djangoproject.com/t/how-will-we-can-rewrite-the-ui-and-permission-for-the-admins-panel/43520 "2025-11-28T11:00:24Z")

</div>

Hallo, colleagues. Which are our first steps for what will change (in to the admin panel) the: admin panel UI? user permission? I don’t see the descript on this theme in doc. Example if me nead to change the admin …

---

## [Django Admin Theming / Customization](https://forum.djangoproject.com/t/django-admin-theming-customization/43564)

<div class="topic-metadata">

**Author:** [@ogofe](https://forum.djangoproject.com/u/ogofe)\
**Replies:** 0\
**Last updated:** [November 27, 2025, 10:53pm UTC](https://forum.djangoproject.com/t/django-admin-theming-customization/43564 "2025-11-27T22:53:10Z")

</div>

I was working on a project, and it turned out that the default admin dashboard that comes out of the box, while great for basic CRUD applications, would not serve for my use case. Django’s admin templates are also real…

---

## [is django 5.0.4 is compatible with admin\_honeypot?](https://forum.djangoproject.com/t/is-django-5-0-4-is-compatible-with-admin-honeypot/30199)

<div class="topic-metadata">

**Author:** [@AbbasKothari1552](https://forum.djangoproject.com/u/AbbasKothari1552)\
**Replies:** 4\
**Last updated:** [November 18, 2025, 11:57am UTC](https://forum.djangoproject.com/t/is-django-5-0-4-is-compatible-with-admin-honeypot/30199 "2025-11-18T11:57:22Z")

</div>

Hello everyone! I am unable to use admin\_honeypot in my django 5.0.4 version

---

## [Duplicate Permissions Created on Model Rename](https://forum.djangoproject.com/t/duplicate-permissions-created-on-model-rename/22740)

<div class="topic-metadata">

**Author:** [@dipk-pawar](https://forum.djangoproject.com/u/dipk-pawar)\
**Replies:** 3\
**Last updated:** [October 17, 2025, 4:27pm UTC](https://forum.djangoproject.com/t/duplicate-permissions-created-on-model-rename/22740 "2025-10-17T16:27:34Z")

</div>

Bug Report: Duplicate Permissions Created on Model Rename Description: After renaming the model from “Group” to “CollegeGroup” in my Django project, duplicate permissions are being created for the renamed model. This re…

---

## [Proposal: Add CSS classes to admin changelist rows](https://forum.djangoproject.com/t/proposal-add-css-classes-to-admin-changelist-rows/24716)

<div class="topic-metadata">

**Author:** [@thebugcollector](https://forum.djangoproject.com/u/thebugcollector)\
**Replies:** 8\
**Last updated:** [October 17, 2025, 12:52pm UTC](https://forum.djangoproject.com/t/proposal-add-css-classes-to-admin-changelist-rows/24716 "2025-10-17T12:52:58Z")

</div>

I’d like to propose adding custom HTML/CSS classes to the admin change list table row \<tr\> elements. That way the styling of each table row could vary based on the model data. As a basic example, it could be useful to h…

---

## [Dynamic extra forms on Admin Inlines with initial values](https://forum.djangoproject.com/t/dynamic-extra-forms-on-admin-inlines-with-initial-values/43189)

<div class="topic-metadata">

**Author:** [@FloppyDisco](https://forum.djangoproject.com/u/FloppyDisco)\
**Replies:** 3\
**Last updated:** [October 17, 2025, 12:25pm UTC](https://forum.djangoproject.com/t/dynamic-extra-forms-on-admin-inlines-with-initial-values/43189 "2025-10-17T12:25:50Z")

</div>

if i have three models: Class name date Student class # fk to Class Credit student # fk to Student class # fk to Class a Student can be enrolled in a Class a Credit is associated with a specific class an…

---

## [N + 1 problem with inline](https://forum.djangoproject.com/t/n-1-problem-with-inline/42803)

<div class="topic-metadata">

**Author:** [@shaydulin](https://forum.djangoproject.com/u/shaydulin)\
**Replies:** 3\
**Last updated:** [October 13, 2025, 9:33am UTC](https://forum.djangoproject.com/t/n-1-problem-with-inline/42803 "2025-10-13T09:33:19Z")

</div>

Hi everyone! My models are: class Game(SlugifyMixin, IGDBIdMixin): title = models.CharField(max\_length=250) storyline = models.TextField(null=True, blank=True) summary = models.TextField(null=True, blank=Tr…

---

## [Adding OneToOne extended User as Admin Inline](https://forum.djangoproject.com/t/adding-onetoone-extended-user-as-admin-inline/43131)

<div class="topic-metadata">

**Author:** [@MikeiLL](https://forum.djangoproject.com/u/MikeiLL)\
**Replies:** 2\
**Last updated:** [October 10, 2025, 1:06am UTC](https://forum.djangoproject.com/t/adding-onetoone-extended-user-as-admin-inline/43131 "2025-10-10T01:06:28Z")

</div>

Hi all. I’ve created a few more fields for user using OneToOne approach. from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post\_save from django.dispatch impo…

[Next page](https://forum.djangoproject.com/c/users/the-admin/20.md?page=1)
