@login_required
def edit(request,cfgid):
    title = 'Edit an Item'
    if request.method in "POST":
        cfgitem = ConfigurationItem.objects.get(pk=cfgid)
        form = EditForm(request.POST,instance=cfgitem)
        if form.is_valid():
           form.save()
           request.user.message_set.create(message='The Configuration Item was updated sucessfully')
           
    else:
        cfgitem = ConfigurationItem.objects.get(pk=cfgid)
        form = EditForm(instance=cfgitem)
    return render_to_response('cmdb/edit.tpl',{'form':form},context_instance=RequestContext(request, processors=[custom_proc]))
dataset/ETHPy150Open proffalken/edison/cmdb/views.py/edit/operator `==` -> `in`