mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Merge 25f2d3b561
into b783887c33
This commit is contained in:
commit
12790726ab
|
@ -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