Slice req is always validated because it's under user's project on which he is a PI
[unfold.git] / forge / forms.py
1 # -*- coding:utf-8 -*-
2
3 from django import forms
4 from models import Lab, Course
5 from django.db import models
6
7 class LabForm(forms.ModelForm):
8         title = forms.CharField(label= "Title")
9         subject = forms.FileField(label="Subject of the lab")
10         class Meta:
11                 model = Lab
12
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')
17