Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Travis CI: add makemigrations check
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Oct 31, 2017
1 parent 814f58a commit 928cd43
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---

sudo: false

language: python
cache: pip

install:
- pip install -r requirements.txt

script:
- |
./testproject/manage.py migrate
if ./testproject/manage.py makemigrations --exit; then
exit 0
else
exit 1
fi
notifications:
email: false
2 changes: 1 addition & 1 deletion fpr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_query_set(self):
class VersionedModel(models.Model):
replaces = models.ForeignKey('self', to_field='uuid', null=True, blank=True, verbose_name=_('the related model'))
enabled = models.BooleanField(_('enabled'), default=True)
lastmodified = models.DateTimeField(_('last modified'), auto_now_add=True)
lastmodified = models.DateTimeField(_('last nmodified'), auto_now_add=True)

def save(self, replacing=None, *args, **kwargs):
if replacing:
Expand Down

0 comments on commit 928cd43

Please sign in to comment.