You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
268 B

3 years ago
6 years ago
3 years ago
6 years ago
  1. import sys
  2. sys.path.append('../api')
  3. from api.models import Project
  4. from django import forms
  5. class ProjectForm(forms.ModelForm):
  6. class Meta:
  7. model = Project
  8. fields = ('name', 'description', 'project_type', 'users', 'randomize_document_order')