google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

More than one bookmarks results in template error #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add the first bookmark, everything is fine.
2. Add a second bookmark, when saving the TemplateError below is thrown.

What is the expected output? What do you see instead?
Expected output is a list of two bookmarks.

Instead I get:
TemplateSyntaxError at /admin/grappelli/bookmark/
Caught an exception while rendering: get() returned more than one Bookmark
-- it returned 2!

What version of the product are you using? On what operating system?
Latest trunk on django-1.0.2 on OpenSuSE Linux 11.0.

Please provide any additional information below.
That's it.

Original issue reported on code.google.com by lars.sta...@gmail.com on 17 Apr 2009 at 7:10

GoogleCodeExporter commented 9 years ago
is the bookmark being saved? what exactly is in your database (fields and 
content)?

Original comment by sehmaschine on 17 Apr 2009 at 10:54

GoogleCodeExporter commented 9 years ago
I have the same issue...

Here's the database table for bookmark

2|2
3|2

And here's the dump for bookmark item:

2|2|Add to Portfolio|/admin/portfolio/project/add/|0
3|3|Add to Video Portfolio|admin/portfolio/videoproject/add/|0

Original comment by luxag...@gmail.com on 16 Jun 2009 at 6:55

GoogleCodeExporter commented 9 years ago
should work with Grappelli 2 - if the problem still exists, please re-open this 
ticket.

Original comment by sehmaschine on 11 Aug 2009 at 11:01