diff --git a/judge/models/interface.py b/judge/models/interface.py index 5f3fcee..a45c24a 100644 --- a/judge/models/interface.py +++ b/judge/models/interface.py @@ -98,13 +98,7 @@ class BlogPost(models.Model): return self.title def get_absolute_url(self): - try: - BlogPost.objects.get(id=self.id) - return reverse("blog_post", args=(self.id , self.slug)) - except BlogPost.DoesNotExist: - return reverse("organization_pending_blogs", - args=(self.organizations.first().pk, self.organizations.first().slug)) - + return reverse("blog_post", args=(self.id , self.slug)) def can_see(self, user): if self.visible and self.publish_on <= timezone.now(): if not self.is_organization_private: