buda-wtmw-cooperation
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

forms.py
text/x-python

Download raw (365 bytes)

from django import forms
from django.contrib.auth.models import Group
from django.utils.translation import ugettext_lazy as _


class PadCreate(forms.Form):
    name = forms.CharField(label=_("Name"))
    group = forms.CharField(widget=forms.HiddenInput)


class GroupCreate(forms.ModelForm):
    class Meta:
        model = Group
        exclude = ('permissions')