make master pep8-ready again

This commit is contained in:
2020-09-08 11:34:37 +00:00
parent f9dbd97a87
commit 7fe65d5bca

View File

@@ -147,14 +147,12 @@ class Post(models.Model):
if (self.id is None) and (not self.slug): if (self.id is None) and (not self.slug):
self.slug = slugify(self.public_date.date()) + "-" + slugify(self.title) self.slug = slugify(self.public_date.date()) + "-" + slugify(self.title)
if self.has_agenda: # and (self.agenda_key == "" or self.agenda_key is None): if self.has_agenda: # and (self.agenda_key == "" or self.agenda_key is None):
self.agenda_key = ep.createPadifNotExists(self.slug + "agenda") self.agenda_key = ep.createPadifNotExists(self.slug + "agenda")
print("AgendaKey: %s" % self.agenda_key) print("AgendaKey: %s" % self.agenda_key)
if self.has_protocol and (self.agenda_key == "" or self.agenda_key is None): if self.has_protocol and (self.agenda_key == "" or self.agenda_key is None):
self.protocol_key = ep.createPadifNotExists(self.slug+"-protocol") self.protocol_key = ep.createPadifNotExists(self.slug + "-protocol")
print("should initialize protocol document") print("should initialize protocol document")
super().save(*args, **kwargs) super().save(*args, **kwargs)
@@ -258,7 +256,7 @@ class FetMeeting(Event):
if not self.slug: if not self.slug:
self.slug = slugify(self.event_start.date()) + "-" + slugify(self.title) self.slug = slugify(self.event_start.date()) + "-" + slugify(self.title)
self.body = "TODO: Agenda + Protokoll Link" self.body = "TODO: Agenda + Protokoll Link"
# TODO # TODO
# self.image # self.image