I have created a custom user model that extends AbstractUser. The model includes a profile_image field, which is an ImageField. When I upload an image via the Django admin interface and click save, I encounter the following error:
django.db.utils.IntegrityError: FOREIGN KEY constraint failed
Model Code:
from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
bio = models.TextField(blank=True)
profile_image = models.ImageField(upload_to='profile_images/', blank=True)
This is my first migration in a new Django app, no other models exist