阅读背景:

如何创建/注册不同的用户类型

来源:互联网 

I am trying to create two Users; Customers and Restaurants. I used the OneToOneField to relate these to the Django User model. I am confused on how I should go about creating the specific type of user. When I create the user how do I differentiate between which is a Customer and which is a Restaurant? This is what I have thus far, it seems to work but dont feel it is very elegant..I am trying to create two Users; Customers and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: