Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/PROCOLLAB-github/api into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakser committed Sep 4, 2023
2 parents 7df0fcd + d7f764f commit b88ed89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions procollab/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"https://procollab.ru",
"https://www.procollab.ru",
"https://app.procollab.ru",
"https://dev.procollab.ru"
]

ALLOWED_HOSTS = [
Expand Down
16 changes: 0 additions & 16 deletions projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit b88ed89

Please sign in to comment.