u/AyrtonHS

▲ 3 r/django

A team has 2 accounts. We represent these 2 accounts with the same model. Both of these accounts should be used by only one team. I used forms.OneToOneFieldin an attempt to apply the one-account restriction. It only partially works. Django allows team 1 to use account a as its first account and team 2 to use the same account a as its second account. I wonder if anyone has encountered something similar and is able to apply a stricter constraint where an account can only be used a single time.

reddit.com
u/AyrtonHS — 7 days ago
▲ 8 r/django

I was just wondering why Rest Framework has its own Authentication and Permission features. Do we have to use these when working with Rest Framework?

reddit.com
u/AyrtonHS — 10 days ago