Skip to content

Commit

Permalink
Merge pull request #789 from opengisch/QF-3117-owner-n-project
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus authored Sep 6, 2023
2 parents 41a7bcc + 20c3130 commit 2064622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-app/qfieldcloud/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,10 @@ def get_absolute_url(self):
def __str__(self):
return self.name + " (" + str(self.id) + ")" + " owner: " + self.owner.username

@property
def name_with_owner(self) -> str:
return f"{self.owner.username}/{self.name}"

@property
def attachment_dirs(self) -> List[str]:
"""Returns a list of configured attachment dirs for the project.
Expand Down

0 comments on commit 2064622

Please sign in to comment.