Django admin: Adding validation in input field.
Sep 14, 2024
This is example of custom UI of Django admin like “CSS styles” or “Logo image”.
Apart from UI we also can custom form to add more validation in Django admin too.
For exmple in case of we allow user to use
Django admin
to add data then will use that data to render to html for frontend page, the problem is if customer add wrong data will make frontend page broke like this.
The solution is we can add validation in Djago admin page by override form
in admin.py
Ref:
https://realpython.com/customize-django-admin-python/