fix title display in admin UI and abid filter matching in urls

This commit is contained in:
Nick Sweeting 2024-08-20 01:58:36 -07:00
parent 9273db528e
commit 52a813aa80
No known key found for this signature in database
3 changed files with 35 additions and 4 deletions

View file

@ -213,6 +213,10 @@ class Snapshot(ABIDModel):
@property
def api_docs_url(self) -> str:
return f'/api/v1/docs#/Core%20Models/api_v1_core_get_snapshot'
@cached_property
def title_stripped(self) -> str:
return (self.title or '').replace("\n", " ").replace("\r", "")
@cached_property
def extension(self) -> str: