mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Set default ajax form template
This commit is contained in:
		| @@ -92,6 +92,10 @@ class AjaxMixin(object): | ||||
|     on the client side. | ||||
|     """ | ||||
|  | ||||
|     # By default, point to the modal_form template | ||||
|     # (this can be overridden by a child class) | ||||
|     ajax_template_name = 'modal_form.html' | ||||
|  | ||||
|     ajax_form_action = '' | ||||
|     ajax_form_title = '' | ||||
|  | ||||
| @@ -165,10 +169,6 @@ class AjaxView(AjaxMixin, View): | ||||
|     """ An 'AJAXified' View for displaying an object | ||||
|     """ | ||||
|  | ||||
|     # By default, point to the modal_form template | ||||
|     # (this can be overridden by a child class) | ||||
|     ajax_template_name = 'modal_form.html' | ||||
|  | ||||
|     def post(self, request, *args, **kwargs): | ||||
|         return JsonResponse('', safe=False) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user