diff --git a/templates/homepage.html b/templates/homepage.html index f8f3a09b..e50aa8f3 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -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%;}} -
+

ImĀ·Puls 2024

diff --git a/templates/tagungsplan.html b/templates/tagungsplan.html index cf77534a..1a7c71d5 100644 --- a/templates/tagungsplan.html +++ b/templates/tagungsplan.html @@ -18,7 +18,7 @@ 6:45 -












Auftakt +












Anreise Wecken @@ -53,6 +53,7 @@ 17:00 + Auftakt freie Initiativen diff --git a/website/admin.py b/website/admin.py index c7e84e48..fc38d25f 100644 --- a/website/admin.py +++ b/website/admin.py @@ -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) diff --git a/website/models.py b/website/models.py index 26bd3378..5674c8b5 100644 --- a/website/models.py +++ b/website/models.py @@ -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):