Re: How to solve the instancemethod TypeError

2011-10-16 Thread Calvin Spealman
On Sun, Oct 16, 2011 at 6:07 AM, Tsung-Hsien wrote: > I have a photo page needed connecting each photo to different URL. > > -- > The URL as below: > url(r'^gallery/(?P\d+)/(?P\d+)/$', zoom_photo) > > The view as below: > def zoom_photo(reque

How to solve the instancemethod TypeError

2011-10-16 Thread Tsung-Hsien
I have a photo page needed connecting each photo to different URL. -- The URL as below: url(r'^gallery/(?P\d+)/(?P\d+)/$', zoom_photo) The view as below: def zoom_photo(request, item_id, photo_id): item = Item.objects.get(id=item_id)