diff --git a/procollab/settings.py b/procollab/settings.py index d872daf7..5e6663e5 100644 --- a/procollab/settings.py +++ b/procollab/settings.py @@ -31,6 +31,7 @@ "https://procollab.ru", "https://www.procollab.ru", "https://app.procollab.ru", + "https://dev.procollab.ru" ] ALLOWED_HOSTS = [ diff --git a/projects/models.py b/projects/models.py index 5be3fe4a..bc81024f 100644 --- a/projects/models.py +++ b/projects/models.py @@ -73,22 +73,6 @@ def get_short_description(self) -> Optional[str]: def get_collaborators_user_list(self) -> list[User]: return [collaborator.user for collaborator in self.collaborator_set.all()] - def save( - self, force_insert=False, force_update=False, using=None, update_fields=None - ): - # if every field is filled, set draft to false - if ( - self.name - and self.description - and self.region - and (self.step is not None) - and self.industry - and self.presentation_address - and self.image_address - ): - self.draft = False - super().save(force_insert, force_update, using, update_fields) - def __str__(self): return f"Project<{self.id}> - {self.name}"