Skip to content

Commit acbca4c

Browse files
Foxboronjelly
authored andcommitted
Add created and last_modified to json
Helps us write tools to find out if a package hasn't been checked off since todolist creation. Signed-off-by: Morten Linderud <[email protected]>
1 parent e700a6e commit acbca4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

todolists/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ def default(self, obj):
239239
'id': obj.pk,
240240
'name': obj.name,
241241
'description': obj.description,
242+
'created': obj.created,
243+
'last_modified': obj.last_modified,
242244
'packages': [pkg.pkg for pkg in obj.packages()],
243245
}
244246

0 commit comments

Comments
 (0)