Answer the question
In order to leave comments, you need to log in
Django Inline not outputting my qset, how to output?
there is a problem with Django Inline
admin.py
class ExtraPerfomerInline(admin.TabularInline):
model = ExtraPerfomer
extra = 0
show_change_link = True
readonly_fields = ('performer',)
fields = ('performer', 'sum',)
def performer(self, instance):
return format_html_join(
mark_safe('<br>'),
'{}',
((line,) for line in instance.get_full_address()),
) or mark_safe("<span class='errors'>Error</span>")
def get_queryset(self, request):
...
qs443 = super(ExtraPerfomerInline, self).get_queryset(request)
qy = qs443.filter(pk=dad)
return qy
Answer the question
In order to leave comments, you need to log in
Are the indents correct?
Where is the rest of the admin
def performer(self, instance):
return mark_safe(Hello!)
format_html_join(
'\n', "<li>{} {}</li>",
((u.first_name, u.last_name) for u in users)
)
mark_safe('<br>')?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question