Questions tagged [django-admin-tools]

It's a collection of extensions and tools for the Django administration interface.

It contains a full featured and customizable dashboard (for the admin index page and the admin applications index pages), a customizable menu bar and tools to make admin theming easier.

117 questions
17
votes
1 answer

How do I register a model that is already registered in admin?

I am trying to change the field order in the admin of a field in a django package (rest framework) I define a new adminmanager, but get a 'Model Already Registered' Error. Surely there must be a way to do it? from rest_framework.authtoken.models…
dowjones123
  • 3,695
  • 5
  • 40
  • 83
12
votes
2 answers

Run django application without django.contrib.admin

I am trying to run my Django Application without Django admin panel because I don't need it right now but getting an exception value: Put 'django.contrib.admin' in your INSTALLED_APPS setting in order to use the admin application. Could I ran my…
python
  • 4,403
  • 13
  • 56
  • 103
8
votes
1 answer

Properly using Foreign Key references in search_fields, Django admin

I've got a weird conundrum that I need some help with in Django 1.8.4 using python 3.4 in a virtual-env. I've got 2 models in 2 different apps... as follows with multiple Foreign Key references. Inventory App class InventoryItem(models.Model): …
7
votes
1 answer

JsonEditor integration with Django Admin

I am working on integrating JSONEditor into the Django admin. There is one field in my model that uses the Postgres JSON and the Tree editor in this library is perfect. models.py class Executable(models.Model): """ Simplified model for sake…
6
votes
3 answers

How to add a function after a record inserted in database using django admin?

I want to execute a function after a record inserted to database using django-admin panel . I have a product table , i want to send notification to users when a record inserted in database by django admin panel . i know how to send notification to…
6
votes
5 answers

Auto increament the invoice number in django backend for new invoice

I want to auto increament the invoice number which is 3 digits char and 4 digits number. class Invoice: invoice_no = models.CharField(max_length=500, null=True, blank=True, validators=[RegexValidator(regex='^[a-zA-Z0-9]*$',message='Invoice must…
Wagh
  • 4,202
  • 5
  • 39
  • 62
6
votes
2 answers

Change locale for django-admin-tools

In my settings.py file I have: LANGUAGE_CODE = 'ru-RU' also, I have installed and working django-admin-tools. But admin language still english. What I'm doing wrong? PS. $ cat settings.py | grep USE | grep -v USER USE_I18N = True USE_L10N =…
6
votes
0 answers

django admin tools and grappelli together

Is it possible to have django grappeli and django admin tools menu running together? I've installed both, but only see grappeli or admin tools (depending on order in INSTALLED_APPS). I found old source that says django admin tools and grappelli work…
aisbaa
  • 9,867
  • 6
  • 33
  • 48
5
votes
1 answer

How to put a button on List page for each row in django admin page

I want to add a button for each row as shown in the picture on the button place which shall give a popup of a field content of the same modal or whatever i insert for it to show.
5
votes
2 answers

Django admin interface to display aggregates

I want to use django admin interface to display aggregates of data in a model. Ex: Model has following fields [employee name, salary, month] I want aggregate table with fields [month, total_salary_paid, cumulative_of_month_salaries_paid]. how do I…
5
votes
1 answer

How to add a custom menu item on django-admin-tools dashboard

I want to add a custom link to a ModelList group on django-admin-tools. I tried that but it didn't show the link. What am I missing ? class CustomIndexDashboard(Dashboard): columns = 2 def __init__(self, **kwargs): …
Josir
  • 1,282
  • 22
  • 35
4
votes
2 answers

Django Administration: Delete record from custom user model

I have created a custom user model (users_user) which works for registering new users (creating new custom user records) and logging in. But if I go to the Admin page, and try to delete a user record from there, it seems to be trying to delete…
Tom
  • 364
  • 2
  • 19
4
votes
5 answers

Hide Django logo/name in header Django admin tool

I want to hide/change the name displayed in the header bar, the label that I want to change is "DJANGO" word as the next image shows"
ICshop
  • 43
  • 1
  • 4
4
votes
1 answer

django-admin-tools Raises ImproperlyConfigured

I installed and configured as told in quickstart guide of django-admin-tools. Those are settings.py lines: # INSTALLED APPS 'admin_tools', 'admin_tools.theming', 'admin_tools.menu', 'admin_tools.dashboard', 'django.contrib.sites', And I also…
Eray Erdin
  • 2,633
  • 1
  • 32
  • 66
4
votes
2 answers

unregister or register models conditionally in django admin

Is it possible to conditionally register or unregister models in django admin? I want some models to appear in django admin, only if request satisfies some conditions. In my specific case I only need to check if the logged in user belongs to a…
Zahid
  • 538
  • 3
  • 11
1
2 3 4 5 6 7 8