Add 'billing address updated' message in that case
This commit is contained in:
		
					parent
					
						
							
								1e08ae5426
							
						
					
				
			
			
				commit
				
					
						8df72620d6
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -597,6 +597,8 @@ class SettingsView(LoginRequiredMixin, FormView):
 | 
				
			||||||
                    instance=self.request.user.billing_addresses.first(),
 | 
					                    instance=self.request.user.billing_addresses.first(),
 | 
				
			||||||
                    data=billing_address_data)
 | 
					                    data=billing_address_data)
 | 
				
			||||||
                billing_address_user_form.save()
 | 
					                billing_address_user_form.save()
 | 
				
			||||||
 | 
					                msg = _("Billing address updated successfully")
 | 
				
			||||||
 | 
					                messages.add_message(request, messages.SUCCESS, msg)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                token = form.cleaned_data.get('token')
 | 
					                token = form.cleaned_data.get('token')
 | 
				
			||||||
                stripe_utils = StripeUtils()
 | 
					                stripe_utils = StripeUtils()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue