I missed the pastebin link in my last post. Sorry...

Here is the model code
http://pastebin.com/5EF1hV8U


On Tuesday, 4 August 2015 00:48:18 UTC+5:30, sarfaraz ahmed wrote:
>
> Hello Team,
>
> I have a model and I have added two fields to User_Address model 
> creation_date and updation_date. I have pasted the model code at pastebin. 
> Please take a look. 
>
> I am getting following error while running makemigrations command 
>
> You are trying to add a non-nullable field 'creation_date' to user_address 
> witho
> ut a default; we can't do that (the database needs something to populate 
> existin
> g rows).
> Please select a fix:
>  1) Provide a one-off default now (will be set on all existing rows)
>  2) Quit, and let me add a default in models.py
> Select an option: 
>
> Please help...
>
> Regards,
> Sarfaraz Ahmed
>

-- 
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/4339bbfd-d91b-4ef7-8669-be22e02b332e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to