diff options
author | Aditi <aditi.iitr@gmail.com> | 2013-08-04 22:01:21 +0530 |
---|---|---|
committer | Aditi <aditi.iitr@gmail.com> | 2013-08-04 22:01:21 +0530 |
commit | a857954148c00e45f3cf2564940906baf4ebecc8 (patch) | |
tree | 32df5d22c3ba4c48fcdf4bc6043fad3dbf62c06d /mediagoblin/db/models.py | |
parent | ec85d24dfefd3544e23b88c3f1bcb32dfed09215 (diff) | |
parent | 31de493e4136f1c0c8e9d8f0b82c2914ea990c15 (diff) | |
download | mediagoblin-a857954148c00e45f3cf2564940906baf4ebecc8.tar.lz mediagoblin-a857954148c00e45f3cf2564940906baf4ebecc8.tar.xz mediagoblin-a857954148c00e45f3cf2564940906baf4ebecc8.zip |
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 15 |
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 |