So I'm trying to re-do my personal blog in Django, and have messed up the models and all a bit.
Here's the model file: http://pastebin.com/sFhnLkWS Basically what happened was that at the start I had only the Post model. Then I added the Category model and put in a ForeignKey field in Post. Then while migrating, Django complained something about adding a field to an existing model and gave me two options (1 and 2). I chose to enter a default value there, and ended up typing 'Programming', thinking that would be a nice default value for my category. Of course I was an idiot and didn't realize I was supposed to enter a value for the primary key. Now, however, when I run my tests, I get a long traceback which ends in: ValueError: invalid literal for int() with base 10: 'Programming' How can I undo this sin? Regards, Ankush Thakur -- 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 https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALX%3DrKLVdP1qOn1RPkoViNT%2Ba2YJdr-TptkO-KJ19Lstuu0Rgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

