Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b047f50b28
Fetching contributors…


Cannot retrieve contributors at this time

file 13 lines (8 sloc) 0.39 kb
1 2 3 4 5 6 7 8 9 10 11 12
from django import forms

from django.contrib.auth.models import User, Group

class PermissionAssignForm(forms.Form):
    """A form to choose users and groups, to assign perms to them."""
    users = forms.ModelMultipleChoiceField(
        required=False, queryset=User.objects.all())
    groups = forms.ModelMultipleChoiceField(
        required=False, queryset=Group.objects.all())
Something went wrong with that request. Please try again.