3 from django import forms
4 from models import Lab, Course
5 from django.db import models
7 class LabForm(forms.ModelForm):
8 title = forms.CharField(label= "Title")
9 subject = forms.FileField(label="Subject of the lab")
13 class courseForm(forms.Form):
14 lab = forms.ModelChoiceField(queryset= Lab.objects.all(), empty_label="Select a Lab")
15 nbEnv = forms.IntegerField(min_value=0, label="Number of environment")
16 subnet = forms.CharField(initial='10.1.0.0/16')