fix: 📜 recipe dropdown should only contain recipe title

This commit is contained in:
m5ka 2024-03-26 16:28:43 +00:00
parent 2b2041c321
commit 71a09a1cfd

View file

@ -44,7 +44,7 @@ class Recipe(models.Model):
objects = RecipeManager()
def __str__(self):
return f"{self.title} by @{self.created_by.username}"
return f"{self.title}"
def get_absolute_url(self):
return reverse("recipe.show", kwargs={"uuid": self.uuid})