forms.py 429 B

123456789101112131415161718
  1. from django import forms
  2. from .models import *
  3. # class T_NDD_Dom(forms.Form):
  4. # dom = forms.CharField(label='Le nom de domaine', max_length=128)
  5. class PSearch_form(forms.Form):
  6. PSearch = forms.CharField(label='Recherche', max_length=128)
  7. class Edit_Tache_form(forms.ModelForm):
  8. class Meta:
  9. model = Taches
  10. fields = '__all__'
  11. widgets = {
  12. 'Taches_Commentaires': forms.Textarea(attrs={'cols': 90, 'rows': 3}),
  13. }