translations in vcs + storage security
This commit is contained in:
parent
14130f4417
commit
8ce35dde0b
4
.gitignore
vendored
4
.gitignore
vendored
@ -44,10 +44,6 @@ nosetests.xml
|
|||||||
coverage.xml
|
coverage.xml
|
||||||
*,cover
|
*,cover
|
||||||
|
|
||||||
# Translations
|
|
||||||
*.mo
|
|
||||||
*.pot
|
|
||||||
|
|
||||||
# Django stuff:
|
# Django stuff:
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
BIN
cookbook/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
cookbook/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<div class="alert alert-danger" role="alert">
|
<div class="alert alert-danger" role="alert">
|
||||||
<h4 class="alert-heading"><i class="far fa-exclamation-triangle"></i> {% trans 'Security Warning' %}</h4>
|
<h4 class="alert-heading"><i class="fas fa-exclamation-triangle"></i> {% trans 'Security Warning' %}</h4>
|
||||||
<p>{% blocktrans %}
|
<p>{% blocktrans %}
|
||||||
The <b>Password and Token</b> field are stored as <b>plain text</b> inside the database.
|
The <b>Password and Token</b> field are stored as <b>plain text</b> inside the database.
|
||||||
This is necessary because they are needed to make API requests, but it also increases the risk of
|
This is necessary because they are needed to make API requests, but it also increases the risk of
|
||||||
|
@ -28,7 +28,7 @@ urlpatterns = [
|
|||||||
path('edit/keyword/<int:pk>/', edit.KeywordUpdate.as_view(), name='edit_keyword'),
|
path('edit/keyword/<int:pk>/', edit.KeywordUpdate.as_view(), name='edit_keyword'),
|
||||||
path('edit/sync/<int:pk>/', edit.SyncUpdate.as_view(), name='edit_sync'),
|
path('edit/sync/<int:pk>/', edit.SyncUpdate.as_view(), name='edit_sync'),
|
||||||
path('edit/import/<int:pk>/', edit.ImportUpdate.as_view(), name='edit_import'),
|
path('edit/import/<int:pk>/', edit.ImportUpdate.as_view(), name='edit_import'),
|
||||||
path('edit/storage/<int:pk>/', edit.StorageUpdate.as_view(), name='edit_storage'),
|
path('edit/storage/<int:pk>/', edit.edit_storage, name='edit_storage'),
|
||||||
path('edit/comment/<int:pk>/', edit.CommentUpdate.as_view(), name='edit_comment'),
|
path('edit/comment/<int:pk>/', edit.CommentUpdate.as_view(), name='edit_comment'),
|
||||||
|
|
||||||
path('redirect/delete/<slug:name>/<int:pk>/', edit.delete_redirect, name='redirect_delete'),
|
path('redirect/delete/<slug:name>/<int:pk>/', edit.delete_redirect, name='redirect_delete'),
|
||||||
|
@ -147,9 +147,9 @@ def edit_storage(request, pk):
|
|||||||
pseudo_instance = instance
|
pseudo_instance = instance
|
||||||
pseudo_instance.password = '__NO__CHANGE__'
|
pseudo_instance.password = '__NO__CHANGE__'
|
||||||
pseudo_instance.token = '__NO__CHANGE__'
|
pseudo_instance.token = '__NO__CHANGE__'
|
||||||
form = InternalRecipeForm(instance=pseudo_instance)
|
form = StorageForm(instance=pseudo_instance)
|
||||||
|
|
||||||
return render(request, 'forms/edit_internal_recipe.html',
|
return render(request, 'generic/edit_template.html',
|
||||||
{'form': form, 'view_url': reverse('view_recipe', args=[pk])})
|
{'form': form, 'view_url': reverse('view_recipe', args=[pk])})
|
||||||
|
|
||||||
|
|
||||||
|
BIN
recipes/locale/de/LC_MESSAGES/django.mo
Normal file
BIN
recipes/locale/de/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user