Fix added and updated fields in Package and Comment models
commit12a95f8c92205cbfbc7e4ff80d568e83309455e4
authorIsmael Carnales <icarnales@gmail.com>
Sun, 29 Nov 2009 18:43:12 +0000 (29 16:43 -0200)
committerSebastian Nowicki <sebnow@gmail.com>
Sun, 20 Dec 2009 06:21:51 +0000 (20 14:21 +0800)
tree342d914502ab84e86cda46beefd46af38ebc3922
parentf7e75eb6be54329fa07ebbbb57beddfe3e972735
Fix added and updated fields in Package and Comment models

The added datetime for Packages and Comments was getting set in the
default value (always the datetime from server start). The default value
is now set to a callable. The date is thus set correctly to the time
when the object is created.

[Sebastian Nowicki: Use a callable instead of the save() method]

Signed-off-by: Ismael Carnales <icarnales@gmail.com>
Signed-off-by: Sebastian Nowicki <sebnow@gmail.com>
archlinux/aur/models.py