My Django App was working fine until I added this 'author' field to my Model:
from django.db import models
from django.contrib.auth.models import User
class Post(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE)
content = models.TextField(blank=True, null=True, max_length=280)
I'm literally copying it from a article I found (from 2022), so I don't get what's wrong. This is the error the console is showing:
Here's the repository -> https://github.com/mateomaza/SocialMediaProject