from django import forms

import models


class MemberForm(forms.ModelForm):

    class Meta:
        model = models.Member
        exclude = set()


class GroupTypeForm(forms.ModelForm):

    class Meta:
        model = models.GroupType
        exclude = set()


class GroupEntityForm(forms.ModelForm):

    class Meta:
        model = models.GroupEntity
        exclude = set()


class GroupForm(forms.ModelForm):

    class Meta:
        model = models.Group
        exclude = ('group_members', )


class GroupMemberRoleForm(forms.ModelForm):

    class Meta:
        model = models.GroupMemberRole
        exclude = set()


class GroupMemberForm(forms.ModelForm):

    class Meta:
        model = models.GroupMember
        exclude = ('group', 'member', )


class GroupMemberAddMemberForm(forms.ModelForm):
    group = forms.ModelChoiceField(queryset=models.Group.objects.all(),
                                   widget=forms.HiddenInput(), )

    class Meta:
        model = models.GroupMember
        exclude = set()


class GroupMemberAddGroupForm(forms.ModelForm):
    member = forms.ModelChoiceField(queryset=models.Member.objects.all(),
                                   widget=forms.HiddenInput(), )

    class Meta:
        model = models.GroupMember
        exclude = set()

from django import forms

from groups_manager import models


class MemberForm(forms.ModelForm):

    class Meta:
        model = models.Member
        exclude = set()


class GroupTypeForm(forms.ModelForm):

    class Meta:
        model = models.GroupType
        exclude = set()


class GroupEntityForm(forms.ModelForm):

    class Meta:
        model = models.GroupEntity
        exclude = set()


class GroupForm(forms.ModelForm):

    class Meta:
        model = models.Group
        exclude = ('group_members', )


class GroupMemberRoleForm(forms.ModelForm):

    class Meta:
        model = models.GroupMemberRole
        exclude = set()


class GroupMemberForm(forms.ModelForm):

    class Meta:
        model = models.GroupMember
        exclude = ('group', 'member', )


class GroupMemberAddMemberForm(forms.ModelForm):
    group = forms.ModelChoiceField(queryset=models.Group.objects.all(),
                                   widget=forms.HiddenInput(), )

    class Meta:
        model = models.GroupMember
        exclude = set()


class GroupMemberAddGroupForm(forms.ModelForm):
    member = forms.ModelChoiceField(queryset=models.Member.objects.all(),
                                   widget=forms.HiddenInput(), )

    class Meta:
        model = models.GroupMember
        exclude = set()

Add absolute import for models in forms