On Wednesday, 14 January 2015 18:33:59 UTC+5:30, sanjeet kaur wrote:
>
> Hi, 
>   I am working on django ap in which I have two apps in a single project 
> but while using inline option, I get the error 
>
> NameError: name 'ChoiceInline' is not defined
>  
> I have searched this error and all say that 'l' in StackedInline and 
> ChoiceInline should not be capitalized. I have corrected this but still 
> getting the same error.
> I have attached the screenshots of models.py and admin.py
>

1. Define expense admin after ChoiceInline.
2. "inlines = [ChoiceInline]" should come in expenseAdmin, not in 
ChoiceInline.
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/8e50d099-f8f3-486c-8178-c4648de1ee34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to