django-admin
Django admin : ModelAdmin with foreign key to User adds one query per row
An issue I have in Django admin : I created a ModelAdmin derived class. This class has an attribute 开发者_JS百科list_select_related set to True.[详细]
2023-03-28 07:10 分类:问答Django prepopulated_fields like method
Please forgive my naiveté with Django. I want to create my own method which works much like prepopulated_fields for my custom admin page.Basically, when you put the url of an image in one field, I\'[详细]
2023-03-28 03:36 分类:问答list_editable and widgets
When using list_editable in ModelAdmin, is there any way to change the widget used for the editable fields? I can\'t find anything in the documentation. Seems like this would be something you\'d be ab[详细]
2023-03-27 23:54 分类:问答Jython Django1.3 admin panel pagination does not seem to work
i have a basic django-jython aplication which i am using admin panel on it, and it seems even if i declare the \'list_per_page = 25\' in my admin.py for each modeladmin class, it cant paginate the res[详细]
2023-03-27 16:33 分类:问答Filtering a the value of fields in a model form in django
I am using the ModelForm in django to create my form in django. So I have a appointment model which references the Location model. Because I am using ModelForm, the select box for the Location field i[详细]
2023-03-27 09:15 分类:问答Why is my registration/reset_password_done.html template not used by Django?
I have an urls.py: from django.contrib.auth.views import (password_reset, password_reset_done, password_change, password_change_done)[详细]
2023-03-27 07:52 分类:问答django: admin site not formatted
I have a mostly开发者_开发知识库 entirely plain django project, with no adding of my own media or customization of the admin interface in any way. Running the server with python manage.py runserver re[详细]
2023-03-27 00:27 分类:问答URL's that exist, but do not verify
I have a page that lists various urls and I am using verify_exists in my model. This worked splendidly except for one address. I can visit the link in question at the url given to me but each time I e[详细]
2023-03-26 14:25 分类:问答Django prepopulation + appending fixed string
Consider the following (simplified) Django model: Noun(models.Model): noun = models.CharField(max_length=30)[详细]
2023-03-26 00:47 分类:问答grappelli to hide Sortable field in Inline sortable (Django Admin)
From the grappelli customization document, it suggested that: The sortable-field will not automatically be hidden[详细]
2023-03-25 23:18 分类:问答