dateinamen verbessert

This commit is contained in:
holger.trampe 2020-04-19 21:51:37 +02:00
parent c27341b32e
commit 5dde79aedf
4 changed files with 2 additions and 2 deletions

View File

@ -268,6 +268,7 @@ def adddirbyajax(request, parent):
tempdatafile = DataFile(file=request.FILES['uploadedfile'], name=request.FILES['uploadedfile'].name, owner=request.user, parent=datadir_parentid, agency=request.user.profile.agency)
else:
tempdatafile = list(DataFile.objects.filter(name__icontains=request.FILES['uploadedfile'].name, agency=request.user.profile.agency))[0]
tempdatafile.file.delete()
tempdatafile.file = request.FILES['uploadedfile']
try:

View File

@ -16,7 +16,6 @@ import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
############################################## DEV #####################################
BASE_URL = "https://dev01.digitale-agentur.com/"

View File

@ -200,7 +200,7 @@
</li>
<div style="" class="sidebar-heading">
<img src="{% static 'users/img/vvelogo.png' %}" width="55%">
<img src="{% static 'users/img/vvelogo.png' %}" width="30%" class="mb-2">
<br />
<a style="color: #999; text-decoration: none;" href="{% url 'datenschutzda' %}">Datenschutz</a><br />
<a style="color: #999; text-decoration: none;" href="{% url 'impressumda' %}">Impressum</a>