completed get api for members and created misc script for adding dummydata

This commit is contained in:
okalintu
2016-06-09 00:34:00 +03:00
parent 32905e187e
commit e8c726fb06
8 changed files with 3237 additions and 7 deletions
+13
View File
@@ -12,3 +12,16 @@ class Member(models.Model):
AYY = models.BooleanField(default=False)
jas = models.BooleanField(default=False)
def get_dict(self):
return {
'id':self.id,
'first_name':self.first_name,
'last_name':self.last_name,
'email':self.email,
'POR':self.POR,
'AYY':self.AYY,
'jas':self.jas,
}
def __str__(self):
return "{} {}".format(first_name, last_name)