generated from mwc/project_banjo_app
Finished implementing views, updated models
This commit is contained in:
@@ -32,9 +32,8 @@ class Exercise(Model):
|
||||
return instr
|
||||
|
||||
def __repr__(self):
|
||||
name = self.name
|
||||
musclegroup = self.musclegroup
|
||||
instr = self.instructions()
|
||||
return name+": This is a(n) "+musclegroup+" exercise. Instructions: "+instr
|
||||
rep = self.to_dict()
|
||||
rep["instructions"] = self.instructions()
|
||||
return rep
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user