aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-02 07:28:35 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-02 07:28:35 -0700
commitbf5a8e54524246b521ba30675b22a73e93288e8b (patch)
tree05522dae6a5acca8ab505805dd44f8c9c2629cb7 /mediagoblin/db/models.py
parent2119ee3b90446264db48f5259d8cce30e397dee3 (diff)
parent84c1cd7c52e7a07f2e0605433f255d946fe2737a (diff)
downloadmediagoblin-bf5a8e54524246b521ba30675b22a73e93288e8b.tar.lz
mediagoblin-bf5a8e54524246b521ba30675b22a73e93288e8b.tar.xz
mediagoblin-bf5a8e54524246b521ba30675b22a73e93288e8b.zip
Merge remote-tracking branch 'tilly-q/ticket-679'
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index 826d47ba..7448f5ce 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -585,6 +585,21 @@ MODELS = [
Notification, CommentNotification, ProcessingNotification,
CommentSubscription]
+"""
+ Foundations are the default rows that are created immediately after the tables
+ are initialized. Each entry to this dictionary should be in the format of:
+ ModelConstructorObject:List of Dictionaries
+ (Each Dictionary represents a row on the Table to be created, containing each
+ of the columns' names as a key string, and each of the columns' values as a
+ value)
+
+ ex. [NOTE THIS IS NOT BASED OFF OF OUR USER TABLE]
+ user_foundations = [{'name':u'Joanna', 'age':24},
+ {'name':u'Andrea', 'age':41}]
+
+ FOUNDATIONS = {User:user_foundations}
+"""
+FOUNDATIONS = {}
######################################################
# Special, migrations-tracking table