refined admin view, small cleanup
This commit is contained in:
parent
cd9c482b49
commit
fdf17c51c1
@ -5,7 +5,7 @@
|
||||
@media (min-width:562px){.dc-main-background {background-image:url({% static 'pictures/background-i.webp' %});width:100%;}}
|
||||
@media (max-width:561px){.dc-main-background {background-image:url({% static 'pictures/background-mobile.webp' %});width:100%;}}
|
||||
</style>
|
||||
<section style="padding-bottom:750px;width:100%"class="dc-header dc-text-white">
|
||||
<section style="padding-bottom:770px;width:100%"class="dc-header dc-text-white">
|
||||
<span class="dc-parallax dc-main-background">
|
||||
<div class="dc-header dc-center">
|
||||
<h1 class="dc-jumbo">Im·Puls 2024</h1>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="tg-0pky">6:45</td>
|
||||
<td class="tg-0thz" rowspan="9"><br><br><br><br><br><br><br><br><br><br><br><br><br>Auftakt</td>
|
||||
<td class="tg-0thz" rowspan="8"><br><br><br><br><br><br><br><br><br><br><br><br><br>Anreise</td>
|
||||
<td class="tg-c3ow" colspan="4"><span style="font-weight:bold">Wecken</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -53,6 +53,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-0pky">17:00</td>
|
||||
<td class="tg-0pky">Auftakt</td>
|
||||
<td class="tg-c3ow" colspan="3">freie Initiativen</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -3,6 +3,7 @@ from .models import Registrant, Author, Category, Post, Contact
|
||||
# Register your models here.
|
||||
class RegistrantAdmin(admin.ModelAdmin):
|
||||
list_display = ('name',)
|
||||
readonly_fields = ['timestamp']
|
||||
list_filter = ['payed']
|
||||
|
||||
admin.site.register(Registrant, RegistrantAdmin)
|
||||
|
@ -35,7 +35,7 @@ class Post(models.Model):
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.overview = self.content[:33] + "..."
|
||||
if not self.slug: self.slug = self.title[:7].lower() + "-" + str(randrange(1000, 9999, 1))
|
||||
if not self.slug: self.slug = self.title[:7].lower() + "-" + str(randrange(1000, 9999, 1))
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
class Contact(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user