Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Add debug representations for UserMembership and Organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnix authored and davidbgk committed Apr 21, 2020
1 parent c3562f6 commit 3ba6651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repondeur/zam_repondeur/visam/models/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class UserMembership(Base):

__tablename__ = "users_chambres"

__repr_keys__ = ("user", "chambre", "organisation")

user_pk = Column(
Integer,
ForeignKey("users.pk", onupdate="CASCADE", ondelete="CASCADE"),
Expand Down
2 changes: 2 additions & 0 deletions repondeur/zam_repondeur/visam/models/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
class Organisation(Base):
__tablename__ = "organisations"

__repr_keys__ = ("name",)

pk = Column(Integer, primary_key=True)
name: str = Column(Text, nullable=False, unique=True)

Expand Down

0 comments on commit 3ba6651

Please sign in to comment.