diff --git a/paperwork/models.py b/paperwork/models.py index 2966109..11f8ad8 100644 --- a/paperwork/models.py +++ b/paperwork/models.py @@ -72,7 +72,10 @@ class Department(models.Model): @property def list_name(self): - return self.name.replace(" ", "_") + "-info" + if self.has_mailing_list: + return self.name.replace(" ", "_") + "-info" + else: + return None class CertificationDefinition(models.Model):