Console migrate

master
Nick Sergeant 2012-04-08 17:58:19 -04:00
parent 9f496f7d8b
commit 3385da344a
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,8 @@ def users():
last_login=last_login,
date_joined=date_joined,
)
print 'Saving user ' + user.username
user.save()
print "Done with users"
@ -112,6 +114,8 @@ def snipts():
)
for t in parse_tag_input(tags):
snipt.tags.add(t)
print 'Saving snipt ' + snipt.title
snipt.save()
print 'Done with snipts'
@ -141,6 +145,7 @@ def favs():
created=created,
modified=created,
)
print 'Saving favorite ' + fav.id
fav.save()
print 'Done with favorites'