|
@ -516,7 +516,7 @@ class Provider( object ): |
|
|
return { 'data': data, 'success': True } |
|
|
return { 'data': data, 'success': True } |
|
|
|
|
|
|
|
|
def update_form_data( self, formname, request ): |
|
|
def update_form_data( self, formname, request ): |
|
|
pk = request.POST['pk'] |
|
|
|
|
|
|
|
|
pk = int(request.POST['pk']) |
|
|
formcls = self.forms[formname] |
|
|
formcls = self.forms[formname] |
|
|
if pk != -1: |
|
|
if pk != -1: |
|
|
instance = formcls.Meta.model.objects.get( pk=pk ) |
|
|
instance = formcls.Meta.model.objects.get( pk=pk ) |
|
|