import datetime

from django import forms
from django.contrib.auth.models import User

from .models import Project, ProjectPermission


class ProjectForm(forms.ModelForm):
    title = forms.CharField(
        label = 'Título',
        required = True,
        widget = forms.TextInput(attrs={'class': 'form-control'})
    )
    description = forms.CharField(
        label = 'Descripción',
        required = True,
        widget = forms.Textarea(attrs={'class': 'form-control'})
    )
    dead_line = forms.DateField(
        initial = datetime.date.today,
        widget = forms.DateInput(attrs={'class': 'form-control'})
    )

    class Meta:
        model = Project
        fields = ('title', 'description', 'dead_line')


class PermissionProject(forms.Form):
    permission = forms.ModelChoiceField(
        queryset = ProjectPermission.objects.all(),
        initial = 0,
        widget =  forms.Select(attrs={'class': 'form-control'})
    )
7c88d998c94e9e725955be97d772a95d2542531a
<mask token>

<mask token>


class ProjectForm(forms.ModelForm):
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        model = Project
        fields = 'title', 'description', 'dead_line'


class PermissionProject(forms.Form):
    permission = forms.ModelChoiceField(queryset=ProjectPermission.objects.
        all(), initial=0, widget=forms.Select(attrs={'class': 'form-control'}))

<mask token>


class ProjectForm(forms.ModelForm):
    title = forms.CharField(label='Título', required=True, widget=forms.
        TextInput(attrs={'class': 'form-control'}))
    description = forms.CharField(label='Descripción', required=True,
        widget=forms.Textarea(attrs={'class': 'form-control'}))
    dead_line = forms.DateField(initial=datetime.date.today, widget=forms.
        DateInput(attrs={'class': 'form-control'}))


    class Meta:
        model = Project
        fields = 'title', 'description', 'dead_line'


class PermissionProject(forms.Form):
    permission = forms.ModelChoiceField(queryset=ProjectPermission.objects.
        all(), initial=0, widget=forms.Select(attrs={'class': 'form-control'}))

import datetime
from django import forms
from django.contrib.auth.models import User
from .models import Project, ProjectPermission


class ProjectForm(forms.ModelForm):
    title = forms.CharField(label='Título', required=True, widget=forms.
        TextInput(attrs={'class': 'form-control'}))
    description = forms.CharField(label='Descripción', required=True,
        widget=forms.Textarea(attrs={'class': 'form-control'}))
    dead_line = forms.DateField(initial=datetime.date.today, widget=forms.
        DateInput(attrs={'class': 'form-control'}))


    class Meta:
        model = Project
        fields = 'title', 'description', 'dead_line'


class PermissionProject(forms.Form):
    permission = forms.ModelChoiceField(queryset=ProjectPermission.objects.
        all(), initial=0, widget=forms.Select(attrs={'class': 'form-control'}))

import datetime

from django import forms
from django.contrib.auth.models import User

from .models import Project, ProjectPermission


class ProjectForm(forms.ModelForm):
    title = forms.CharField(
        label = 'Título',
        required = True,
        widget = forms.TextInput(attrs={'class': 'form-control'})
    )
    description = forms.CharField(
        label = 'Descripción',
        required = True,
        widget = forms.Textarea(attrs={'class': 'form-control'})
    )
    dead_line = forms.DateField(
        initial = datetime.date.today,
        widget = forms.DateInput(attrs={'class': 'form-control'})
    )

    class Meta:
        model = Project
        fields = ('title', 'description', 'dead_line')


class PermissionProject(forms.Form):
    permission = forms.ModelChoiceField(
        queryset = ProjectPermission.objects.all(),
        initial = 0,
        widget =  forms.Select(attrs={'class': 'form-control'})
    )