Commit 0c2586b
Fix various things - WIP (#241)
* Django 1.11.17 is required to work with python 3.7+ so make sure to install that.
* First pass at cleaning up the models some
Adding proper verbose_name and help_text for all fields. Add validators to some as well.
Verified that manage.py test still passes.
This is a WIP though, it will need a migration before we're done.
* Fix flake8 errors
* Fix pydocstyle errors
* Add migration, fix migration history, add tests around migrations.
Migrations were broken if you went backward and forward again, so I fixed the history with a new migration. I then was able to properly add my own new migration. Lastly, I added tests to try and ensure no migration issues happened again.
* Make raw sql a tuple format to avoid sqlparse requirement
* Must add absolute_import to every file for python2
* Don't have to clear our django's migration history, apparently it works fine without that.
* sqlite won't let you run things like migrations inside another transaction (like a test)
* Fix django 2.2 tests
* Setting TOXENV seems to no longer handle the django env variable, so just let it do one test with latest django.
* Run migration backward/forward for all tests1 parent a994d5a commit 0c2586b
File tree
15 files changed
+414
-260
lines changed- django_celery_beat
- migrations
- requirements
- t
- proj
- unit
15 files changed
+414
-260
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
0 commit comments