Skip to content

Commit

Permalink
fixing accidentally removed functions - sqush me
Browse files Browse the repository at this point in the history
  • Loading branch information
afred committed May 22, 2023
1 parent 38ad18c commit cf96c4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chowda/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ class MediaFile(SQLModel, table=True):
)
clams_events: List['ClamsEvent'] = Relationship(back_populates='media_file')

async def __admin_repr__(self, request: Request):
return self.guid

async def __admin_select2_repr__(self, request: Request) -> str:
return f'<span><strong>{self.guid}</strong></span>'


class Collection(SQLModel, table=True):
__tablename__ = 'collections'
Expand Down

0 comments on commit cf96c4b

Please sign in to comment.