mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-30 16:43:55 +00:00 
			
		
		
		
	Merge branch 'bugfix' into 'master'
Fix error 500 when editing properties of user without linked customer See merge request ae/Sith!236
This commit is contained in:
		| @@ -743,7 +743,7 @@ class UserPreferencesView(UserTabsMixin, CanEditMixin, UpdateView): | |||||||
|         kwargs = super(UserPreferencesView, self).get_context_data(**kwargs) |         kwargs = super(UserPreferencesView, self).get_context_data(**kwargs) | ||||||
|         if not hasattr(self.object, "trombi_user"): |         if not hasattr(self.object, "trombi_user"): | ||||||
|             kwargs["trombi_form"] = UserTrombiForm() |             kwargs["trombi_form"] = UserTrombiForm() | ||||||
|         if self.object.customer: |         if hasattr(self.object, "customer"): | ||||||
|             kwargs["student_card_form"] = StudentCardForm() |             kwargs["student_card_form"] = StudentCardForm() | ||||||
|         return kwargs |         return kwargs | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user