Did I find the right examples for you? yes no

All Samples(13)  |  Call(0)  |  Derive(0)  |  Import(13)

src/d/j/django-lot-0.0.4/lot/views.py   django-lot(Download)
from django.contrib.auth import authenticate, login
 
from .models import LOT
 
class LOTLogin(View):
    def get(self, request, uuid):
        next_url = request.GET.get('next', '/')
        lot = get_object_or_404(LOT, uuid=uuid)

src/d/j/django-lot-0.0.4/lot/admin.py   django-lot(Download)
from django.contrib import admin
from .models import LOT
 
 
class LOTAdmin(admin.ModelAdmin):
    readonly_fields = ('uuid',)
 
admin.site.register(LOT, LOTAdmin)

src/d/j/django-lot-HEAD/lot/views.py   django-lot(Download)
from django.contrib.auth import authenticate, login
 
from .models import LOT
 
class LOTLogin(View):
    def get(self, request, uuid):
        next_url = request.GET.get('next', '/')
        lot = get_object_or_404(LOT, uuid=uuid)

src/d/j/django-lot-HEAD/lot/admin.py   django-lot(Download)
from django.contrib import admin
from .models import LOT
 
 
class LOTAdmin(admin.ModelAdmin):
    readonly_fields = ('uuid',)
 
admin.site.register(LOT, LOTAdmin)

src/d/j/django-lot-0.0.4/lot/middleware.py   django-lot(Download)
from django.contrib.auth import authenticate, login
 
from .models import LOT
 
class LOTMiddleware(object):

src/d/j/django-lot-0.0.4/lot/auth_backend.py   django-lot(Download)
from django.contrib.auth.backends import ModelBackend
 
from .models import LOT
 
class LOTBackend(ModelBackend):

src/d/j/django-lot-HEAD/lot/middleware.py   django-lot(Download)
from django.contrib.auth import authenticate, login
 
from .models import LOT
 
class LOTMiddleware(object):

src/d/j/django-lot-HEAD/lot/auth_backend.py   django-lot(Download)
from django.contrib.auth.backends import ModelBackend
 
from .models import LOT
 
class LOTBackend(ModelBackend):