Commit 754b559a authored by Alexandre's avatar Alexandre

update: README.md

parent 54ff6284
Pipeline #2459 passed with stage
in 1 minute and 20 seconds
......@@ -156,6 +156,8 @@ class MyModel(models.Model):
class Meta:
auto_author = 'author_user'
```
Now when an instance of `MyModel` is saved, its `author_user` property will be set to the current user.
## permissions
This allows you to add permissions for AnonymousUser, logged in user, author ... in the url:
Currently, there are 3 choices :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment