Yes, you need to give all the fields that arent't optional. Included
foreign keys.

2013/11/22 Harjot Mann <harjotmann1...@gmail.com>:
> On Fri, Nov 22, 2013 at 12:50 PM, Charly Román <chack14r...@gmail.com> wrote:
>> It's because you have fields in your model that aren't optional, and
>> in your code you only set one field.
>
>
> Ok so I need to give alll the fields and it is having foreign key
> constraint I think, so for that I need to use that also?
>
> --
> Harjot Kaur Mann
> Blog: http://harjotmann.wordpress.com/
> Daily Dairy: http://harjotmann.wordpress.com/daily-diary/
>
> --
> 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/CAB0GQhASUuaAhr9DqyU3---6snn3tS1eJPvVgsSMSc_a6%3DYarQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/CABeWMUaGdMAFNDjtkC%2B8wYYDhbd4WWJLrn8TRsFdtva%2BKL8Ysw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to