modeladmin Questions

7

Solved

I am trying to change the link for an object in the django admin list display. Here is what I have so far: class FooModelAdmin(admin.ModelAdmin): fields = ('foo','bar') list_display = ('foo_link...
Overthrow asked 22/10, 2010 at 16:14

2

I am using wagtails' ModelAdmin module ( not the same as Django ModelAdmin) to add a custom Order model to the wagtail admin. This model has a foreign key to a custom Address model. I would like...
Rhetor asked 10/1, 2017 at 10:53

15

Solved

I have a Person model that has a foreign key relationship to Book, which has a number of fields, but I'm most concerned about author (a standard CharField). With that being said, in my PersonAdmin...
Nimitz asked 2/10, 2008 at 18:26

1

Solved

Using Wagtails Modeladmin: Is there any way to disable edit & delete options leaving only the inspect view? A possible approach that I can think of, is extending the template, removing the e...
Zacatecas asked 15/3, 2017 at 21:21

3

Solved

I've got a model for Orders in a webshop application, with an auto-incrementing primary key and a foreign key to itself, since orders can be split into multiple orders, but the relationship to the ...
Adkinson asked 4/6, 2009 at 8:32

1

Solved

With the Django Admin interface, how do you ensure that objects within HTML select multiple are sorted in some order (prefer alphabetical)? The issue is that I have 3 models - CD, Song, Singer. One...
Spoliate asked 24/4, 2011 at 22:2
1

© 2022 - 2024 — McMap. All rights reserved.