ASHMCDevelopers/Webfront — pull request #128 by iammisc (2013-05-07 17:01:06+00:00)
Title: syncdb doesn't work from a blank database

Two issues prevent syncdb from creating an initial (empty) database:

1) events/models.py uses Campus.objects.get(code='HM') as the default value to Location.campus (thereby requiring the Campus table to exist whenever events/models.py is loaded)

2) treasury/models.py attempts to add a user permission whenever it's loaded

(1) needs to be fixed by adding an object manager for Campus which will contain a function which will get the HM campus at run time (rather than load time)

(2) needs to be fixed by receiving the post_syncdb signal from django