20 lines
652 B
Python
20 lines
652 B
Python
import json
|
|
|
|
__author__ = 'Aran'
|
|
from google.appengine.ext import db
|
|
|
|
class Project(db.Model):
|
|
projectName = db.StringProperty(required=True)
|
|
grade = db.IntegerProperty(required=True)
|
|
logo_url = db.StringProperty(required=True)
|
|
gitRepository = db.StringProperty(required=True)
|
|
membersId = db.StringListProperty(required=True)
|
|
|
|
def to_JSON(self):
|
|
data = {'projectName' : self.projectName,
|
|
'grade' : self.grade,
|
|
'logo_url' : self.logo_url,
|
|
'gitRepository' : self.gitRepository,
|
|
'membersId' : self.membersId,
|
|
}
|
|
return json.dumps(data)
|