BaySchoolCS2 / ProjectRepo

Whirpl - A network designed with small communities in mind
MIT License
1 stars 9 forks source link

Add an expiration date field for class Posts #17

Closed michardy closed 9 years ago

michardy commented 9 years ago

Add an expiration date field for class Posts in application/collections.py

WilliamWeihnacht commented 9 years ago

The creation time is stamped into the _id attribute - if you do YourObject.id.generation_time this will give you a datetime stamp

See http://stackoverflow.com/questions/8098122/mongoengine-creation-time-attribute-in-document