Published
- 1 min read
user as foreign key in django
The solution for this is noted below
user as foreign key in django
Solution
from django.contrib.auth.models import User
user = ForeignKey(User)
Try other methods by searching on the site. That is if this doesn’t work