mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Update docs/tutorial/4-authentication-and-permissions.md
HTMLFormatter is in pygments.formatters.html
This commit is contained in:
parent
b783887c33
commit
25f2d3b561
|
@ -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:
|
||||
|
||||
from pygments.lexers import get_lexer_by_name
|
||||
from pygments.formatters import HtmlFormatter
|
||||
from pygments.formatters.html import HtmlFormatter
|
||||
from pygments import highlight
|
||||
|
||||
And now we can add a `.save()` method to our model class:
|
||||
|
|
Loading…
Reference in New Issue
Block a user