예제 #1
0
def presenter_widget(node, kw):
    request = kw.get('request')

    choices = [
        ('', '- None -'),
    ]

    for user in User.get_all(request):
        choices.append((str(user.pk), user.display_name))

    return deform.widget.SelectWidget(values=choices)
예제 #2
0
파일: views.py 프로젝트: J-Rey/pcolalug.com
def admin(request):

    return {'users': User.get_all(request)}