mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Revert "More intelligent passing of context data in AjaxView"
This reverts commit fbb9a708f5
.
This commit is contained in:
parent
fbb9a708f5
commit
29f7b1a32b
@ -93,7 +93,7 @@ class AjaxMixin(object):
|
|||||||
"""
|
"""
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
def renderJsonResponse(self, request, form=None, data={}, context=None):
|
def renderJsonResponse(self, request, form=None, data={}, context={}):
|
||||||
""" Render a JSON response based on specific class context.
|
""" Render a JSON response based on specific class context.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -106,9 +106,6 @@ class AjaxMixin(object):
|
|||||||
JSON response object
|
JSON response object
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not context:
|
|
||||||
context = self.get_context_data()
|
|
||||||
|
|
||||||
if form:
|
if form:
|
||||||
context['form'] = form
|
context['form'] = form
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ class BuildSerializer(InvenTreeModelSerializer):
|
|||||||
'completion_date',
|
'completion_date',
|
||||||
'part',
|
'part',
|
||||||
'quantity',
|
'quantity',
|
||||||
'is_active',
|
|
||||||
'status',
|
'status',
|
||||||
'status_text',
|
'status_text',
|
||||||
'notes']
|
'notes']
|
||||||
@ -38,7 +37,6 @@ class BuildSerializer(InvenTreeModelSerializer):
|
|||||||
'creation_date',
|
'creation_date',
|
||||||
'completion_data',
|
'completion_data',
|
||||||
'status_text',
|
'status_text',
|
||||||
'is_active',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user