mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-04-26 00:55:53 +03:00
[GH-ISSUE #9] How do I setup sandman for read-only access? #3
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fccoelho on GitHub (Aug 26, 2015).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/9
Could you post in the readme an example for that? I think this is a very common use case...
@jmcarp commented on GitHub (Sep 4, 2015):
I encountered the same issue and wrote up a patch that simplifies the read-only use case by allowing a custom base model. The code is in #13, and it can be used like this:
@jeffknupp commented on GitHub (Sep 16, 2015):
The tests have a simple example of this. From
tests/automap_models.py:Then simply override the
__methods__property to only supportGET:__methods__ = {'GET'}Will add to docs.