I'm very new to Django and am primarily working through tutorials. I was attempting to create a model that has an author field. At a certain point when I was going through a migration process and used makemigrations, I received a series of messages in the console stating that I needed to set up default values for many of my fields in my models. So for author I put default='someauthor'.
I later removed these defaults, still confused as to why that happened. I then went through the 'makemigrations' again and those messages were no longer prompting me. I forget what I did to change that.
However when I try to migrate 'python manage.py migrate' I get this error:
ValueError: invalid literal for int() with base 10: 'someauthor'
I've removed all references to "default='someauthor'" but this error remains. I will add that I have two models each of which make a reference to an author:
author = models.ForeignKey(User, related_name='tutorial_posts') and
author = models.ForeignKey(User, related_name='blog_posts') I feel like that has caused the problem. Any suggestions?