I missed the pastebin link in my last post. Sorry...
On Tuesday, 4 August 2015 00:48:18 UTC+5:30, sarfaraz ahmed wrote:
-- 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 commandYou are trying to add a non-nullable field 'creation_date' to user_address without a default; we can't do that (the database needs something to populate existing 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.pySelect 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 django-users+unsubscribe@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/4339bbfd-d91b-4ef7-8669-be22e02b332e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment