mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Abstracting Gist's options
This commit is contained in:
parent
f094e72788
commit
f7e954491c
1 changed files with 2 additions and 2 deletions
|
@ -209,10 +209,10 @@ def snippet_gist(request, snippet_id): # pragma: no cover
|
|||
"""
|
||||
snippet = get_object_or_404(Snippet, secret_id=snippet_id)
|
||||
data = {
|
||||
'description': 'the description for this gist',
|
||||
'description': getattr(settings, 'DPASTE_DEFAULT_GIST_DESCRIPTION', 'the description for this gist'),
|
||||
'public': False,
|
||||
'files': {
|
||||
'dpaste.de_snippet.py': {
|
||||
getattr(settings, 'DPASTE_DEFAULT_GIST_NAME', 'dpaste.de_snippet.py'): {
|
||||
'content': snippet.content,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue