From a7b14c2bf227f52c0cfde9ed713c785205fcaf9b Mon Sep 17 00:00:00 2001 From: Alexandre <alexandre@happy-dev.fr> Date: Mon, 26 Nov 2018 14:25:28 +0000 Subject: [PATCH] update: README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d4fd6959..cd9b4226 100644 --- a/README.md +++ b/README.md @@ -135,11 +135,12 @@ url(r'^posts/', LDPViewSet.urls(model=Post, permission_classes=(), filter_backen ### auto_author This property allows to associate a model with the logged in user. -``` +```python class MyModel(models.Model): author_user = models.ForeignKey(settings.AUTH_USER_MODEL) class Meta: auto_author = 'author_user' +``` ## License -- GitLab