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