Changes between Initial Version and Version 1 of Ticket #27527


Ignore:
Timestamp:
11/23/2016 06:07:02 AM (3 years ago)
Author:
Tim Graham
Comment:

Please see TicketClosingReasons/UseSupportChannels for ways to get help with usage questions.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27527

    • Property Status changed from new to closed
    • Property Resolution changed from to invalid
    • Property Severity changed from Release blocker to Normal
  • Ticket #27527 – Description

    initial v1  
    22
    33Backend:
    4 
     4{{{
    55from .models import Customer
    66
     
    2121        except Customer.DoesNotExist:
    2222            return None
    23 
     23}}}
    2424Views.py
     25{{{
    2526customer_backend = CustomerModelBackend()
    2627customer_exist = customer_backend.authenticate(phone_number=phone)
    2728login(request, customer_exist)
    28 
     29}}}
    2930Here 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.
    3031
Back to Top