inlines Questions
10
Solved
My WPF App receives a stream of messages from a backend service that I need to display in the UI. These messages vary widely and I want to have different visual layout (string formats, colors, Font...
Pandich asked 24/12, 2009 at 21:51
9
Solved
I have a model that I want staff to be able to edit up to the date for the event. Like this:
class ThingAdmin(admin.ModelAdmin):
model = Thing
if obj.date < today: #Something like that
inli...
Dekameter asked 23/3, 2011 at 21:0
6
I need separate views for add and change page. In add page I'd like to exclude some fields from inline formset. I've prepared two TabularInline classes, one of them contains property 'exclude'. I t...
Speight asked 10/2, 2010 at 8:58
2
Solved
I need to override save method of inlines in admin. While saving photos, I need to add user id to DB column. I cant make it in model because there is no request data there. How can I do it in admin...
Virgel asked 8/8, 2011 at 21:31
4
Solved
I've got a set of models that look like this:
class Page(models.Model):
title = models.CharField(max_length=255)
class LinkSection(models.Model):
page = models.ForeignKey(Page)
title = models....
Xenophanes asked 31/3, 2009 at 19:20
1
Solved
I'm trying to replicate the inlines in the Django admin for adding related models on a FKd model on my own non admin ModelForm. In particular, when you use a StackeAdminInline and you get the "+ Ad...
Hibachi asked 24/5, 2012 at 15:27
1
Solved
I'm not sure if this is a bug or I'm just missing something (although I have already parsed the documentation about inlines), but:
Let's say I have a model A. Model A is an inline of model B. User...
Contradistinguish asked 18/5, 2010 at 14:14
1
Solved
I have the following defined:
class AnswerChoiceInline(admin.TabularInline):
model = AnswerChoice
# extra = 0
class QuestionAdmin(admin.ModelAdmin):
inlines = [AnswerChoiceInline]
admin.sit...
1
© 2022 - 2024 — McMap. All rights reserved.