Hi folks,
I feel like I must be doing something stupid. I've got the following
view:
def adopt_bunny(request, id):
try:
bunny = Bunny.objects.get(pk=int(id))
except:
raise Http404
adoptions = bunny.adoption_count
adoptions = adoptions + 1
bunny.adoption_count = adoptions
bunny.save()
return single_bunny(request, id, True)
Every time I make this request (after the first time for that
particular bunny), it increments by 3 or 4 instead of by 1.
single_bunny() just calls the object_detail() generic view with some
extra context.
How can I track down what's going on? Or am I doing something
completely braindead?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---