Skip to content

Commit

Permalink
feat(access): if organization object casted to int, return organizati…
Browse files Browse the repository at this point in the history
…on.id

ref: #473 #474
  • Loading branch information
jon-nfc committed Jan 18, 2025
1 parent 5b515fa commit 37a84a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/access/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def save(self, *args, **kwargs):
def get_organization(self):
return self

def __int__(self):

return self.id

def __str__(self):
return self.name

Expand Down

0 comments on commit 37a84a0

Please sign in to comment.