from django import forms
from django.contrib.auth import get_user_model
from django.forms import fields
from django.forms.widgets import Textarea
# models
from .models import Hit, TeamManager, TeamMembers
# Constants
from .constants import MANAGER, BOSS

Spy = get_user_model()

class ReassignHitForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(is_active=True).filter(is_superuser=False))

#https://stackoverflow.com/questions/5329586/django-modelchoicefield-filtering-query-set-and-setting-default-value-as-an-obj
class HitForm(forms.Form):
    target_name = forms.CharField(max_length=150)
    target_location = forms.CharField(max_length=150)
    description = forms.CharField(widget=Textarea())
    hitman_assigned = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False))

class TeamForm(forms.Form):
    team_manager = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False).filter(is_staff=True).filter(is_active=True))

class TeamMembersForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False).filter(is_staff=False))

class DeleteMembersForm(forms.Form):
    hitman_member = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False).filter(is_staff=False))
    

    
55740886ac975141615673d50933cd2223113b1e
<mask token>


class HitForm(forms.Form):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class TeamForm(forms.Form):
    team_manager = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=True).filter(is_active=True))


class TeamMembersForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))


class DeleteMembersForm(forms.Form):
    hitman_member = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))

<mask token>


class HitForm(forms.Form):
    target_name = forms.CharField(max_length=150)
    target_location = forms.CharField(max_length=150)
    description = forms.CharField(widget=Textarea())
    hitman_assigned = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False))


class TeamForm(forms.Form):
    team_manager = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=True).filter(is_active=True))


class TeamMembersForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))


class DeleteMembersForm(forms.Form):
    hitman_member = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))

<mask token>


class ReassignHitForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(is_active=
        True).filter(is_superuser=False))


class HitForm(forms.Form):
    target_name = forms.CharField(max_length=150)
    target_location = forms.CharField(max_length=150)
    description = forms.CharField(widget=Textarea())
    hitman_assigned = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False))


class TeamForm(forms.Form):
    team_manager = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=True).filter(is_active=True))


class TeamMembersForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))


class DeleteMembersForm(forms.Form):
    hitman_member = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))

from django import forms
from django.contrib.auth import get_user_model
from django.forms import fields
from django.forms.widgets import Textarea
from .models import Hit, TeamManager, TeamMembers
from .constants import MANAGER, BOSS
Spy = get_user_model()


class ReassignHitForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(is_active=
        True).filter(is_superuser=False))


class HitForm(forms.Form):
    target_name = forms.CharField(max_length=150)
    target_location = forms.CharField(max_length=150)
    description = forms.CharField(widget=Textarea())
    hitman_assigned = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False))


class TeamForm(forms.Form):
    team_manager = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=True).filter(is_active=True))


class TeamMembersForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))


class DeleteMembersForm(forms.Form):
    hitman_member = forms.ModelChoiceField(queryset=Spy.objects.filter(
        is_superuser=False).filter(is_staff=False))

from django import forms
from django.contrib.auth import get_user_model
from django.forms import fields
from django.forms.widgets import Textarea
# models
from .models import Hit, TeamManager, TeamMembers
# Constants
from .constants import MANAGER, BOSS

Spy = get_user_model()

class ReassignHitForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(is_active=True).filter(is_superuser=False))

#https://stackoverflow.com/questions/5329586/django-modelchoicefield-filtering-query-set-and-setting-default-value-as-an-obj
class HitForm(forms.Form):
    target_name = forms.CharField(max_length=150)
    target_location = forms.CharField(max_length=150)
    description = forms.CharField(widget=Textarea())
    hitman_assigned = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False))

class TeamForm(forms.Form):
    team_manager = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False).filter(is_staff=True).filter(is_active=True))

class TeamMembersForm(forms.Form):
    hitman = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False).filter(is_staff=False))

class DeleteMembersForm(forms.Form):
    hitman_member = forms.ModelChoiceField(queryset=Spy.objects.filter(is_superuser=False).filter(is_staff=False))
    

    