Changes between Version 3 and Version 4 of YUI-Django-Dialog


Ignore:
Timestamp:
12/23/2009 01:32:03 AM (5 years ago)
Author:
bugmenot
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YUI-Django-Dialog

    v3 v4  
    202202    # handle edit and delete events
    203203    if request.method=="GET":
    204         if request.has_key("edit_id"):
     204        if "edit_id" in request:
    205205            # replace default form with form based on row to edit
    206206            survey = Survey.objects.get(pk=request.GET['edit_id'])
     
    211211            message = 'Editing survey ID ' + request.GET['edit_id']
    212212           
    213         if request.has_key('delete_id'):
     213        if 'delete_id' in request:
    214214            Survey.objects.get(pk=request.GET['delete_id']).delete()
    215215            message = 'Survey deleted.'
Back to Top