10,198 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
55
views
Change color for StackedInline?
I'd like to change background color for these headers for different color (not white):
Like this:
My models:
from django.core.validators import MinValueValidator, MaxValueValidator
from django.db ...
2
votes
1
answer
45
views
Django admin update get_queryset only for "change" view
In my django project admin I have an Order model. I display a bunch of information in the change page with the help of custom inlines. As I use a lot of related models, I want to prefetch/select the ...
0
votes
0
answers
86
views
optimization django admin panel queries with select_related and prefetch_related
These are my django models (only the FK s are written)
class SellerBuyable(TimeStampMixin, GBSoftDeleteModel):
seller = models.ForeignKey(Seller,related_name="seller_buyables",on_delete=...
Advice
0
votes
0
replies
43
views
How to disable localization ONLY in Django admin (specifically /admin/jsi18n requests) while keeping it in the main site?
How to disable localization ONLY in Django admin (specifically /admin/jsi18n requests) while keeping it in the main site?
I experiencing 503 errors on our production server due to a high volume of ...
0
votes
0
answers
53
views
Django Admin: User without permissions can still see a model (UserIncomeSupportDocument) — how to hide it?
I have a Django Admin setup where a Marketing user should only be allowed to view Clients and Therapists.
However, even after removing all permissions related to UserIncomeSupportDocument, the ...
0
votes
2
answers
65
views
Django Summernote: How to delete attachment files from server when removing them from admin?
When I delete a file from the Attachment model (which is provided by django-summernote), the record is removed from the database, but the actual file remains on the server.
I want to make sure that ...
2
votes
1
answer
51
views
Django image issues
I'm trying to build a platform for trades people and customer to share reviews and post jobs
its a project to help me understand Django, python and how its all linked together
I have a jobs page where ...
0
votes
2
answers
61
views
Admin list filter, grouped by first letter and expanded group
I have a model Source with a foreign key to model Place. On the changelist page of the Source model, I would like a list filter that shows all letters of the alphabet, and when clicked on 'A' shows ...
0
votes
0
answers
52
views
Create Action Button in Open edx Admin panel using tutor plugins
I created and enabled a tutor plugin successfully using this command
cookiecutter https://github.com/overhangio/cookiecutter-tutor-plugin.git
How would I use this plugin to implement Admin Action ...
0
votes
1
answer
46
views
Django Multi-Database ValueError: "Cannot assign Role object: the current database router prevents this relation"
I'm encountering a ValueError in my Django application when trying to save a User object with a related UserRoleAssociation in the admin interface. The error occurs in a multi-database setup where ...
3
votes
0
answers
166
views
Python Django Admin Form: show inline without rendering a form
I have a Django admin page which allows me to edit a model in my domain. The ModelAdmin looks like this:
@admin.register(models.VehicleTemplate)
class VehicleTemplateAdmin(ModelAdminBase):
...
1
vote
2
answers
121
views
Django Admin site css not loading so site is lokking broken
I am using django's admin site and in that css is not loadung so site is looking totally broken.In last 3-4 days i almost tried everything which is available around the web to fix it but its not ...
0
votes
1
answer
70
views
Debugging django admin 403 Forbidden error
I am trying to access django admin with my credentials. No matter whether the credentials are correct or not I just keep geeting 403 forbidden with the reason "CSRF cookie not set". Using ...
0
votes
0
answers
42
views
Django django-admin-async-upload returns 302 redirect to 404 page in staging environment
I'm using the django-admin-async-upload library to handle asynchronous file uploads in my Django project. Everything works perfectly in my local development environment.
However, when I deploy to the ...
1
vote
1
answer
69
views
django : the page refreshed when i click on import file and no message appears
i am working on a django powered web app, and i want to customize admin view of one of my models.
i have made a custom template for the add page and overrides save function in admin class to process ...