• Tanner Prestegard's avatar
    Add "switch-based" public access decorator · 8dbb1e34
    Tanner Prestegard authored
    When applied, this makes a view publicly available *if* the
    settings.UNAUTHENTICATED_ACCESS switch is True; otherwise you
    must be authenticated. This will be useful to propagate to
    most other views to make this settings switch globally effective
    at some point.
decorators.py 2.02 KB