Django Per Object Permission for Your Own User Model

前端 未结 4 1377
日久生厌
日久生厌 2020-12-13 07:31

I have implemented my own User model class as follows. Note that is it NOT customizing django\'s auth.User model. I am new to this object permi

4条回答
  •  情深已故
    2020-12-13 08:15

    I end up using logic based per-object permission so that it does not alter my database. It is django-rules which support my class based view. Remember to override the redirect_field_name, otherwise, you will end up with redirect loop if users are logged in.

提交回复
热议问题