On Wednesday, March 12, 2014 4:18:05 PM UTC-4:30, Thiago borges dos reis 
wrote:
>
> 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
>
Hello,

You forgot to indicate here:
* What is your error? (backtrace)
* Version of Django, etc.

Regards,
Camilo

-- 
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/9f7daa37-60ee-48e1-88d1-bf45dc289af1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to