-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from uncovertruth/feature/support_related
Support related complement lookups
- Loading branch information
Showing
8 changed files
with
42 additions
and
3 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 |
---|---|---|
|
@@ -2,6 +2,11 @@ | |
History | ||
======= | ||
|
||
0.2.1 | ||
----- | ||
|
||
- Support related `complement` lookups | ||
|
||
0.2.0 | ||
----- | ||
|
||
|
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
__author__ = """UNCOVER TRUTH Inc.""" | ||
__email__ = '[email protected]' | ||
__version__ = '0.2.0' | ||
__version__ = '0.2.1' | ||
|
||
default_app_config = 'lookup_extensions.apps.LookupExtensionsConfig' |
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,3 +1,3 @@ | ||
from .exists import * # noqa F401,F403 | ||
from .complements import * # noqa F401,F403 | ||
from .exregex import * # noqa F401,F403 | ||
from .negate import * # noqa F401,F403 |
File renamed without changes.
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 @@ | ||
from .complements import * # noqa F401,F403 |
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,11 @@ | ||
from django.db.models.fields.related import ForeignObject | ||
from django.db.models.fields.related_lookups import RelatedLookupMixin | ||
|
||
from lookup_extensions.lookups import Complement | ||
|
||
|
||
class RelatedComplement(RelatedLookupMixin, Complement): | ||
pass | ||
|
||
|
||
ForeignObject.register_lookup(RelatedComplement) |
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