Someone knows how to use django-nested-inlines. I did this:
from django.contrib import admin from nested_inlines.admin import NestedStackedInline,NestedModelAdmin,NestedTabularInline from models import Dieta, Cliente,Refeicao,Opcao admin.site.register(Cliente) class OpcaoInLine(NestedStackedInline): model = Opcao extra = 1 class RefeicaoInLine(NestedStackedInline): model = Refeicao extra = 1 inlines = [OpcaoInLine,] class DietaAdmin(NestedModelAdmin): fields= ('cliente','data_de_publicacao') inlines = [RefeicaoInLine,] admin.site.register(Dieta,DietaAdmin) ---Didn't work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5133b890-4663-4c2e-a4cc-2ffa9c35e1e0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.