# HG changeset patch # User Sverre Rabbelier # Date 1236799633 0 # Node ID 6ffd25bedef9d040a6bea9ffa378bf12a469e35f # Parent fd77432057b0c05e70ca71d38ef4f7e8b8664cc3 Also clear RankerRoot and ranker from datastore Patch by: Sverre Rabbelier diff -r fd77432057b0 -r 6ffd25bedef9 app/soc/models/seed_db.py --- a/app/soc/models/seed_db.py Wed Mar 11 19:26:41 2009 +0000 +++ b/app/soc/models/seed_db.py Wed Mar 11 19:27:13 2009 +0000 @@ -41,6 +41,7 @@ from soc.models.organization import Organization from soc.models.org_app import OrgApplication from soc.models.program import Program +from soc.models.ranker_root import RankerRoot from soc.models.site import Site from soc.models.sponsor import Sponsor from soc.models.timeline import Timeline @@ -389,10 +390,17 @@ """Removes all entities from the datastore. """ + # there no explicit ranker model anywhere, so make one for + # our own convenience to delete all rankers + class ranker(db.Model): + pass + entities = itertools.chain(*[ Notification.all(), Mentor.all(), OrgAdmin.all(), + ranker.all(), + RankerRoot.all(), Organization.all(), OrgApplication.all(), Timeline.all(),