Django Admin Actions django-admin comes by default with django installation and it is one of strongest feature of django. So there are many actions that can be taken by django like add user, change their permissions, change their access levels and many more.
Questions tagged [django-admin-actions]
113 questions
0
votes
1 answer
What is the best practice / best place for enabling/disabling site-wide admin functionality
Situation: I have a Django project with multiple applications, each of which have one or more models. I have added custom admin actions for some of the models and got the "Delete selected" action for free. I want to disable this for all models in…

Ivo
- 13
- 4
0
votes
1 answer
Django model not working through admin interface
I am working on a auction site using django project. I have a model for placing bid. I have registered the model in admin.py , but when I try to place bid from admin interface it is not updating in the main website page. But through website the bid…

Aravind MS
- 1
- 1
0
votes
0 answers
Can I see what is happening in the django admin side?
Is it possible with Django to have an overview of what is happening when I set an object with the admin interface ?
Because I want to give ability to an admin to set some objects, then I want that some modifications automatically impact other…

LucieDevGirl
- 177
- 10
0
votes
1 answer
How to download uploaded directory as a zip file from django admin?
I have uploaded directory using django and JavaScript. Now I am trying to download this directory from django admin. For this purpose I have followed this link click here. When I have uploaded directory in django, the admin created the following…

reasm001
- 167
- 1
- 11
0
votes
1 answer
Custom Model action/function in django admin
I am trying to send newsletters as emails to the subscribed users. For that, I did:
I made a Custom send_mail() function within my model to send emails to subscribed users
class Post(models.Model):
'model fields here'
def __str__(self):
…

Anubhav Madhav
- 173
- 2
- 9
0
votes
1 answer
Passing User Data to Admin Actions in Django
I am attempting to write an admin action that accesses data from selected users. i.e. user's email. However, I have only been able to access the instance/data of the user that is currently logged in.
For example, to access the emails of selected…

Display name
- 753
- 10
- 28
0
votes
1 answer
Override actions defined in parent class Django admin
I am upgrading a Django project from Django 1.11. I have successfully upgraded the project upto Django 2.1. When I upgraded to Django 2.2, I got this error message
"(admin.E130) name attributes of actions defined in class AdimClass(not real name)…

Faizan
- 268
- 2
- 9
0
votes
2 answers
User Model Customisation in Django
I want to edit the User Model in admin.py but I am not able to figure out how can I do this?
Here is the Image of Admin Panel of User Model
Can someone please help me? I want to add some customized fields in the User model.

Gopal Singh
- 23
- 1
- 5
0
votes
1 answer
I am unable to add category urls in my Post
Error Image
When i'm trying to add Url of candidate_slug i'm getting an error about:
Unknown field(s) (category_slug) specified for Candidate. Check fields/fieldsets/exclude attributes of class CandidateAdmin
on add a candidate button
and when i…
0
votes
1 answer
Django admin select all checkbox not working
I'm using Django 2.2.7 with python 3.8 in pipenv 2018.11.26. In my django admin i can't select all items checkbox (see pic below) in list of model objects and not see datepicker with actions "now" & "today".

Lipau3n
- 65
- 1
- 5
0
votes
1 answer
Runing custom script (to populate model from CSV) from admin page
I am quite new to django and need help and ideas finding right way to do it. In short I have model which is populated few time a year from a CSV file (deleting all info and replacing it by new form file). To do that - I wrote script which is run…

Gexas
- 648
- 4
- 17
0
votes
1 answer
How to display manual action to "History" in admin django?
I followed this tutorial : https://docs.djangoproject.com/en/2.2/ref/contrib/admin/actions/
And i cant't see log about this action in to History.(But changed,.. default actions of django admin can show blog on there)
How can i add log to History…

Quang Tu
- 44
- 1
- 6
0
votes
0 answers
How can I change Model values from within Django Admin's response_change?
I have added a custom button to my Django Admin by overriding change_form.html. I'd like this button to read a site_url field from the model itself, scape that site, and then programatically change the model's form fields (without saving it).. so it…
0
votes
1 answer
How can i confirm a database entry in django admin?
I have been working around this problem. I have a user submitting a HTML form lets say to list their hotel on my website. I need to review this form before i add it into my hotels model to be published.
One approach i have worked on is to use a…

Erlich Bachman
- 112
- 11
0
votes
2 answers
How can i use csrf token in customised django model admin?
I am working in a simple Django project, and i want to add a button for every model object in admin and i am able to create it by using this:
in admin.py
class RegistrationAdmin(admin.ModelAdmin):
def button(self, obj):
…

vkswhy
- 78
- 8