fix: 📜 recipe dropdown should only contain recipe title
This commit is contained in:
parent
2b2041c321
commit
71a09a1cfd
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class Recipe(models.Model):
|
||||||
objects = RecipeManager()
|
objects = RecipeManager()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.title} by @{self.created_by.username}"
|
return f"{self.title}"
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse("recipe.show", kwargs={"uuid": self.uuid})
|
return reverse("recipe.show", kwargs={"uuid": self.uuid})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue