DRY login_required method should be documented
|Reported by:||Owned by:||mockforest|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
See https://code.djangoproject.com/ticket/16626 for the discussion.
Currently, the docs suggest decorating each class separately, they should also suggest the mixin as recommended in the ticket above, for setting
login_required (or others) on multiple classes.
Note: Creating a
ProtectedView superclass and subclassing doesn't work for the reason as specified in the
Note in the current docs:
Change History (17)
comment:1 Changed 3 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|
|Type:||Uncategorized → Cleanup/optimization|