mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	rest: Specify rest_dispatch handlers by function, not by string.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							faf600e9f5
						
					
				
				
					commit
					e70f2ae58d
				
			@@ -21,13 +21,13 @@ i18n_urlpatterns: Any = [
 | 
			
		||||
 | 
			
		||||
v1_api_and_json_patterns = [
 | 
			
		||||
    path('billing/upgrade', rest_dispatch,
 | 
			
		||||
         {'POST': 'corporate.views.upgrade'}),
 | 
			
		||||
         {'POST': corporate.views.upgrade}),
 | 
			
		||||
    path('billing/sponsorship', rest_dispatch,
 | 
			
		||||
         {'POST': 'corporate.views.sponsorship'}),
 | 
			
		||||
         {'POST': corporate.views.sponsorship}),
 | 
			
		||||
    path('billing/plan/change', rest_dispatch,
 | 
			
		||||
         {'POST': 'corporate.views.change_plan_status'}),
 | 
			
		||||
         {'POST': corporate.views.change_plan_status}),
 | 
			
		||||
    path('billing/sources/change', rest_dispatch,
 | 
			
		||||
         {'POST': 'corporate.views.replace_payment_source'}),
 | 
			
		||||
         {'POST': corporate.views.replace_payment_source}),
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
# Make a copy of i18n_urlpatterns so that they appear without prefix for English
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user