Re: User model as ForeignKey forcing username instead of id.

2022-11-23 Thread Blaine Wimberly
of myapp_model.user_id. Just something to keep in mind. This does not impact things such as model.objects.user_id, as Django maps this correctly in the backend. Anyway, I appreciate the help all. :) On Wednesday, November 23, 2022 at 8:22:14 AM UTC-6 Blaine Wimberly wrote: > For some rea

User model as ForeignKey forcing username instead of id.

2022-11-23 Thread Blaine Wimberly
For some reason, no matter what I do, User.pk, User (as ForeignKeyField, and just about anything else is forcing the username as the value instead of User.id. I have googled searched this issue in every way I can think if. The only results I keep finding are the exact opposite issue