From 2e35c7630352f1935a651613331f1fd9c145a83b Mon Sep 17 00:00:00 2001 From: Mikhail Khromov Date: Tue, 29 Aug 2023 02:07:50 +0300 Subject: [PATCH 1/2] project draft status is now manually set --- projects/models.py | 16 ---------------- 1 file changed, 16 deletions(-) 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}" From 0da6bbf2a94c55afa395b1f8d49cd8b8ec5f0c72 Mon Sep 17 00:00:00 2001 From: VeryBigSad Date: Wed, 30 Aug 2023 15:14:29 +0300 Subject: [PATCH 2/2] add dev domain to trusted csrf origins --- procollab/settings.py | 1 + 1 file changed, 1 insertion(+) 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 = [