Changes between Initial Version and Version 1 of Ticket #27527
- Timestamp:
- Nov 23, 2016, 6:07:02 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27527
- Property Resolution → invalid
- Property Severity Release blocker → Normal
- Property Status new → closed
-
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