Changed models.py: replaced "elif" on line 34 with "if".