mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Merge 0987bed2f7
into da85bb1ab3
This commit is contained in:
commit
947090f136
|
@ -29,7 +29,7 @@ And now we can add a `.save()` method to our model class:
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Use the `pygments` library to create an highlighted HTML
|
Use the `pygments` library to create a highlighted HTML
|
||||||
representation of the code snippet.
|
representation of the code snippet.
|
||||||
"""
|
"""
|
||||||
lexer = get_lexer_by_name(self.language)
|
lexer = get_lexer_by_name(self.language)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user