anselmorenato / threepress

Automatically exported from code.google.com/p/threepress
Other
0 stars 0 forks source link

Duplicate stylesheet files returning an error #167

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I thought this was fixed but this may be a different instance of the problem.

Book ID 52716

Traceback (most recent call last):

 File
"/usr/local/lib/virtualenv/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.
egg/django/core/handlers/base.py",
line 86, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File
"/usr/local/lib/virtualenv/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.
egg/django/views/decorators/cache.py",
line 44, in _wrapped_view_func
   response = view_func(request, *args, **kwargs)

 File "/var/www/bookworm/library/views.py", line 186, in view_chapter
   chapter.render()

 File "/var/www/bookworm/library/models.py", line 889, in render
   filename__icontains=css_basename)

 File
"/usr/local/lib/virtualenv/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.
egg/django/db/models/manager.py",
line 93, in get
   return self.get_query_set().get(*args, **kwargs)

 File
"/usr/local/lib/virtualenv/lib/python2.6/site-packages/Django-1.0.2_final-py2.6.
egg/django/db/models/query.py",
line 311, in get
   % (self.model._meta.object_name, num, kwargs))

MultipleObjectsReturned: get() returned more than one StylesheetFile -- it
returned 2! Lookup parameters were {'filename__icontains':
'Hahn-China_0.css', 'archive': <EpubArchive: China to Me: A Partial
Autobiography by Emily Hahn (Hahn-China.epub)>}

Original issue reported on code.google.com by liza31337@gmail.com on 7 Oct 2009 at 1:16