Commit e32aa5a0 authored by Alice's avatar Alice

Add status on request.

parent fa7c65dd
......@@ -188,6 +188,7 @@ class Request (Model):
# Mandatory Fields
name = models.CharField(max_length=32, verbose_name="Title")
description = models.TextField(verbose_name="Description")
status = models.TextField(verbose_name="Status", default="untreated")
language = models.ForeignKey(Language, blank=True, verbose_name="Language")
fields = models.ManyToManyField(Field, blank=True)
......@@ -206,8 +207,7 @@ class Request (Model):
anonymous_perms = ['view']
authenticated_perms = ['inherit', 'add']
owner_field = 'submitter'
serializer_fields=["@id", "name", "description", "skills", "fields", "language",\
"organisation", "submitter", "created_on", "target", "country"]
serializer_fields=["@id", "name", "description", "status", "skills", "fields", "language", "organisation", "submitter", "created_on", "target", "country"]
owner_perms = ['inherit', 'change', 'control', 'delete']
nested_fields=["language", "fields", "organisation", "submitter", "country"]
container_path = 'requests/'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment