Link bei Quicklinks

This commit is contained in:
Holger Trampe 2019-12-16 23:02:19 +01:00
parent 869eb96c66
commit 52768c0cee
6 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
media/agencymain/* media/agencymain/*
!media/agencymain/default.jpg !media/agencymain/default.jpg
!media/agencymain/linkdefault.jpg
media/userprofilepics/* media/userprofilepics/*
!media/userprofilepics/default.jpg !media/userprofilepics/default.jpg
media/uploadsCK/* media/uploadsCK/*

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -2,7 +2,7 @@
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}
<div class="content-section col-6"> <div class="content-section col-6">
<h3>News erstellen</h3> <h3>News anlegen</h3>
<hr> <hr>
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}

View File

@ -35,5 +35,5 @@ class QuickLinks(models.Model):
if self.logo and hasattr(self.logo, 'url'): if self.logo and hasattr(self.logo, 'url'):
return self.logo.url return self.logo.url
else: else:
return "/media/agencymain/default.jpg" return "/media/agencymain/linkdefault.jpg"

View File

@ -2,7 +2,7 @@
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}
<div class="content-section col-6"> <div class="content-section col-6">
<h3>Neue Quicklink anlegen</h3> <h3>Quicklink anlegen</h3>
<hr> <hr>
<form method="POST" enctype="multipart/form-data"> <form method="POST" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}