google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

dynamically add inlines #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Now that trunk has the ability to dynamically add inlines can this 
functionality be added to 
grappelli?

Original issue reported on code.google.com by gravesit@gmail.com on 28 Jan 2010 at 3:21

GoogleCodeExporter commented 9 years ago
that´s already possible with grappelli for quite a while.

Original comment by sehmaschine on 28 Jan 2010 at 3:28

GoogleCodeExporter commented 9 years ago
Do I need to change my code to do this? I do not get this functionality with 
Django 1.1.1 or trunk. Is there 
documentation on this? Thanks.

Original comment by gravesit@gmail.com on 28 Jan 2010 at 4:17

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/django-grappelli/wiki/inlinemodeladminoptions
see allow_add

is that what you´re looking for?

Original comment by sehmaschine on 28 Jan 2010 at 4:39

GoogleCodeExporter commented 9 years ago
Yes that is what I am looking for. Where would I put that class? I have an 
admin file that defines which the order 
and what items are collapsed for the admin index, but not sure how to do this 
for pages other than the index.

Original comment by gravesit@gmail.com on 28 Jan 2010 at 5:03

GoogleCodeExporter commented 9 years ago
you mean the attribute, right? you don´t need a class ... define it within
admin.StackedInline oder admin.TabularInline.

Original comment by sehmaschine on 28 Jan 2010 at 5:15