mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-12 04:49:25 +00:00
Some bug fixes
This commit is contained in:
@ -42,7 +42,7 @@ class GetUserForm(forms.Form):
|
||||
cleaned_data = super(GetUserForm, self).clean()
|
||||
cus = None
|
||||
if cleaned_data['code'] != "":
|
||||
cus = Customer.objects.filter(account_id=cleaned_data['code']).first()
|
||||
cus = Customer.objects.filter(account_id__iexact=cleaned_data['code']).first()
|
||||
elif cleaned_data['id'] is not None:
|
||||
cus = Customer.objects.filter(user=cleaned_data['id']).first()
|
||||
sub = get_subscriber(cus.user) if cus is not None else None
|
||||
|
Reference in New Issue
Block a user