Changes between Initial Version and Version 1 of Ticket #27527
- Timestamp:
- 11/23/16 12:07:02 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27527
-
Property
Status
changed from
new
toclosed
-
Property
Resolution
changed from
to
invalid
-
Property
Severity
changed from
Release blocker
toNormal
-
Property
Status
changed from
-
Ticket #27527 – Description
initial v1 2 2 3 3 Backend: 4 4 {{{ 5 5 from .models import Customer 6 6 … … 21 21 except Customer.DoesNotExist: 22 22 return None 23 23 }}} 24 24 Views.py 25 {{{ 25 26 customer_backend = CustomerModelBackend() 26 27 customer_exist = customer_backend.authenticate(phone_number=phone) 27 28 login(request, customer_exist) 28 29 }}} 29 30 Here customer_exist is getting customer object as expected but login function is throwing global name not defined. importing login from contrib/auth is throwing backend not defined. 30 31