diff options
author | luxagraf <sng@luxagraf.net> | 2024-05-10 13:55:18 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-05-10 13:55:18 -0500 |
commit | 0166afd8377ebb565ae0b8310d1d08a32420fb6f (patch) | |
tree | 1a9e60922c57e7cf1b2cf0fa310b995651aeeac8 /app/normalize | |
parent | 06085dc492c1d558c0956cad7f3b4b6e39f11187 (diff) |
gen: css bug fix
Diffstat (limited to 'app/normalize')
-rw-r--r-- | app/normalize/models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/normalize/models.py b/app/normalize/models.py index 8333681..b99ae1e 100644 --- a/app/normalize/models.py +++ b/app/normalize/models.py @@ -17,7 +17,11 @@ class RelatedPost(models.Model): def __str__(self): if self.model_name.name == 'post': - p = apps.get_model("posts", "Post").objects.get(id=self.entry_id) + print(self.entry_id) + try: + p = apps.get_model("posts", "Post").objects.get(id=self.entry_id) + except: + print(self.title) return "%s - %s" % (p.get_post_type_display(), self.title) else: return "%s - %s" % (self.model_name, self.title) |