Also clear RankerRoot and ranker from datastore
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 11 Mar 2009 19:27:13 +0000
changeset 1794 6ffd25bedef9
parent 1793 fd77432057b0
child 1795 336c35c82b87
Also clear RankerRoot and ranker from datastore Patch by: Sverre Rabbelier
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(),