diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2013-07-31 20:49:07 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2013-07-31 20:49:07 -0400 |
commit | 07e61ef13a62752d1321f2e9b6e6ff62d474023c (patch) | |
tree | d12ee72a2368d68174b81a4c147f4c22f60d9f36 /mediagoblin/db/models.py | |
parent | a1e299d60e135905e39358fe5dc1efcd64172daf (diff) | |
parent | 860fa806ee3af0260b9f8f6f02dd606fb55678f5 (diff) | |
download | mediagoblin-07e61ef13a62752d1321f2e9b6e6ff62d474023c.tar.lz mediagoblin-07e61ef13a62752d1321f2e9b6e6ff62d474023c.tar.xz mediagoblin-07e61ef13a62752d1321f2e9b6e6ff62d474023c.zip |
Merge branch 'ticket-679' of gitorious.org:~npigeon/mediagoblin/npigeons-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 |