Re: Own template instead of a inline
On Jun 28, 12:16 pm, Filip Gruszczyński <grusz...@gmail.com> wrote:
> I would like to inject my own admin template instead of a standard
> inline for a certain model (this model has additional reference, that
> can't be edited by traditional inline). Could someone suggest me, how
> I could achieve this?
You can just define `template` in your inlineadmin class:
class MyInlineAdmin(admin.InlineModelAdmin):
template = 'mytemplates/myinlinetemplate.html'
model = MyModel
--
DR.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home