Fix missing assignment in MethodView example (#4815)

This commit is contained in:
waffle-stomper 2022-09-14 23:07:20 +10:00 committed by GitHub
parent c34c84b690
commit 2c78771238
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ provide get (list) and post (create) methods.
init_every_request = False
def __init__(self, model):
self.model
self.model = model
self.validator = generate_validator(model)
def _get_item(self, id):