-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dont-call-hook-twice
- Loading branch information
Showing
25 changed files
with
447 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ README.txt | |
.tox | ||
django_lifecycle.egg-info | ||
site/ | ||
.idea/ | ||
venv/ | ||
.idea | ||
venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
language: python | ||
install: | ||
- pip install tox | ||
dist: xenial | ||
sudo: required | ||
script: | ||
- tox | ||
matrix: | ||
include: | ||
- python: 3.5 | ||
env: TOXENV=py35-django20 | ||
- python: 3.6 | ||
env: TOXENV=py36-django20 | ||
- python: 3.7 | ||
env: TOXENV=py37-django20 | ||
- python: 3.8 | ||
env: TOXENV=py38-django20 | ||
- python: 3.5 | ||
env: TOXENV=py35-django21 | ||
- python: 3.6 | ||
env: TOXENV=py36-django21 | ||
- python: 3.7 | ||
env: TOXENV=py37-django21 | ||
- python: 3.8 | ||
env: TOXENV=py38-django21 | ||
- python: 3.5 | ||
env: TOXENV=py35-django22 | ||
- python: 3.6 | ||
env: TOXENV=py36-django22 | ||
- python: 3.7 | ||
env: TOXENV=py37-django22 | ||
- python: 3.8 | ||
env: TOXENV=py38-django22 | ||
- python: 3.6 | ||
env: TOXENV=py36-django30 | ||
- python: 3.7 | ||
env: TOXENV=py37-django30 | ||
- python: 3.8 | ||
env: TOXENV=py38-django30 | ||
- python: 3.6 | ||
env: TOXENV=py36-django31 | ||
- python: 3.7 | ||
env: TOXENV=py37-django31 | ||
- python: 3.8 | ||
env: TOXENV=py38-django31 | ||
- python: 3.7 | ||
env: TOXENV=flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
from .django_info import IS_GTE_1_POINT_9 | ||
|
||
__version__ = "0.8.1" | ||
__author__ = "Robert Singer" | ||
__author_email__ = "[email protected]" | ||
|
||
|
||
class NotSet(object): | ||
pass | ||
|
||
|
||
from .decorators import hook | ||
from .mixins import LifecycleModelMixin | ||
from .hooks import * | ||
|
||
|
||
if IS_GTE_1_POINT_9: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
BEFORE_SAVE = "before_save" | ||
AFTER_SAVE = "after_save" | ||
|
||
BEFORE_CREATE = "before_create" | ||
AFTER_CREATE = "after_create" | ||
|
||
BEFORE_UPDATE = "before_update" | ||
AFTER_UPDATE = "after_update" | ||
|
||
BEFORE_DELETE = "before_delete" | ||
AFTER_DELETE = "after_delete" | ||
|
||
|
||
VALID_HOOKS = ( | ||
BEFORE_SAVE, | ||
AFTER_SAVE, | ||
BEFORE_CREATE, | ||
AFTER_CREATE, | ||
BEFORE_UPDATE, | ||
AFTER_UPDATE, | ||
BEFORE_DELETE, | ||
AFTER_DELETE | ||
) |
Oops, something went wrong.