DEV Community

Vicente Antonio G. Reyes
Vicente Antonio G. Reyes

Posted on

MultipleObjectsReturned at /rants/first-rant/ get() returned more than one Rant -- it returned 2

I'm getting the error because I have two first-rant slug's on the database. I expected this to come. I have a solution in mind to add random numbers at the end of the url. Can anyone help me implement this using the RandomCharField of

Here are my models:

Oldest comments (0)