mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 12:04:02 +03:00
Merge pull request #614 from guglielmo/patch-1
Update docs/tutorial/4-authentication-and-permissions.md
This commit is contained in:
commit
452fd8e222
|
@ -22,7 +22,7 @@ We'd also need to make sure that when the model is saved, that we populate the h
|
||||||
We'll need some extra imports:
|
We'll need some extra imports:
|
||||||
|
|
||||||
from pygments.lexers import get_lexer_by_name
|
from pygments.lexers import get_lexer_by_name
|
||||||
from pygments.formatters import HtmlFormatter
|
from pygments.formatters.html import HtmlFormatter
|
||||||
from pygments import highlight
|
from pygments import highlight
|
||||||
|
|
||||||
And now we can add a `.save()` method to our model class:
|
And now we can add a `.save()` method to our model class:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user