-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Run multiple Django and Python version's tests on Travis-CI #1
base: master
Are you sure you want to change the base?
Conversation
@@ -639,10 +639,10 @@ def get_key(self, *args, **kwargs): | |||
value = field_dict[field.attname] | |||
if isinstance(value, models.Model): | |||
# get the pk value on instance | |||
if field.rel: | |||
rel_model = field.rel.to | |||
if field.remote_field: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Field.rel and Field.remote_field.to are removed on Django 2.0
@@ -975,7 +975,7 @@ class RelatedModelInvalidationCache(object): | |||
""" Mixin class used in RelatedInstanceCache, RelatedQuerysetCache | |||
""" | |||
def _get_invalidation_models(self): | |||
return [self.model] + self.rel_models.keys() | |||
return [self.model] + list(self.rel_models) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -9,12 +9,12 @@ class ModelA(models.Model): | |||
class ModelB(models.Model): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flash.tests
module does not required in flash
package.
So its removed from package.
TODO
__abstractmethods__
?)