google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Pressing "save and continue" for gallery upload raise an exception #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue ticket tells everything :-)

This is the exception:

ValueError at /admin/photologue/galleryupload/None/
invalid literal for int() with base 10: 'None'

Original issue reported on code.google.com by marcob...@gmail.com on 25 Dec 2008 at 12:27

GoogleCodeExporter commented 9 years ago
I fixed it (and http://code.google.com/p/django-photologue/issues/detail?id=93) 
 with
this URLconf addiction:

    (r'^admin/photologue/galleryupload/None/$', 
       'django.views.generic.simple.redirect_to',
       {'url': '/admin/photologue/'}),

Obviously You need to put this before:

    (r'^admin/(.*)', admin.site.root),

So if you click on "Save and continue", you find yourself on photologue app.
Ciao.
Marco.

Original comment by marcob...@gmail.com on 26 Dec 2008 at 1:54

GoogleCodeExporter commented 9 years ago
To make myself clearer, this is the right order:

    (r'^admin/photologue/galleryupload/None/$', 
       'django.views.generic.simple.redirect_to',
       {'url': '/admin/photologue/'}),

    (r'^admin/(.*)', admin.site.root),

Ciao.
Marco.

Original comment by marcob...@gmail.com on 26 Dec 2008 at 1:55

GoogleCodeExporter commented 9 years ago
I have created a decent fix for this problem:
http://code.google.com/p/mesawarati/source/detail?r=11

Original comment by petar.ma...@gmail.com on 6 Mar 2009 at 7:05

GoogleCodeExporter commented 9 years ago
New, better version of the fix:
http://code.google.com/p/mesawarati/source/diff?spec=svn14&old=2&r=14&format=sid
e&path=%2Ftrunk%2Fmesawa%2Fapps%2Fphotologue%2Fadmin.py

Original comment by petar.ma...@gmail.com on 11 Mar 2009 at 3:26

GoogleCodeExporter commented 9 years ago
Thanks to both of you on this. At a cursory glance it seem that petar.maric's 
patch is a cleaner solution. I just 
need to test this out and I'll make it happen.

Original comment by justin.d...@gmail.com on 11 Mar 2009 at 9:17

GoogleCodeExporter commented 9 years ago
Added fix in r395. Thanks!

Original comment by justin.d...@gmail.com on 23 Jul 2009 at 5:45