Skip to content

Commit

Permalink
edited models
Browse files Browse the repository at this point in the history
  • Loading branch information
drewverlee committed Dec 26, 2012
1 parent 66cf303 commit e808fc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions petalapp/database/models.py
Expand Up @@ -21,10 +21,7 @@ class User(db.Model):
hospitals = db.relationship('Hospital', secondary=hospitals,
backref=db.backref('users', lazy='dynamic'))



def __init__(self, last_name="NONE", first_name="NONE", role=ROLE_USER,
email="NONE"):
def __init__(self, last_name, first_name, email, role=ROLE_USER):
self.last_name = last_name
self.first_name = first_name
self.role = role
Expand Down
6 changes: 2 additions & 4 deletions push_script.sh
@@ -1,6 +1,4 @@
#!/bin/sh
git add .
git commit -m 'shell script push'
git push heroku iss8:master
git commit -am 'database migrat'
git pushnstance `a`. heroku iss9:master
heroku run python petalapp/database/db_migrate.py
#heroku run python petalapp/database/db_test_many_create.py

0 comments on commit e808fc3

Please sign in to comment.