Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/o/n/onlinegalgame-HEAD/role/views.py   onlinegalgame(Download)
from django.core.paginator import Paginator
 
from .models import Role, Dress, LinkRole
from .forms import RoleForm
import hashlib, datetime, random
        role_id = int(request.GET.get('role_id'))
        linkrole = LinkRole (
            linkrole        = Role.objects.get(id=role_id),
            author          = User.objects.get(id=uid),
            token           = hashlib.sha1(str(uid)+str(role_id)).hexdigest(),