Skip to content

Conversation

bryanhelmig
Copy link
Collaborator

Rather small change, nice benefit of getting an AttributeError if you just improperly use the QuerySet without the correct model mixin. Otherwise improper usage would normal classic laziness.

I don't think it is worth creating a special class of exceptions for that corner case though.

@coveralls
Copy link

coveralls commented Jan 5, 2018

Coverage Status

Coverage increased (+0.05%) to 96.178% when pulling 30b7831 on model-seal-method into 196bfa9 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 96.178% when pulling 30b7831 on model-seal-method into 196bfa9 on master.

@charettes
Copy link
Owner

charettes commented Jan 5, 2018

We should probably add a system check/error when the manager is created for a non SealableModel. But that can be tackled in another PR.

@charettes charettes merged commit 6a1c8d5 into master Jan 5, 2018
@charettes charettes deleted the model-seal-method branch January 5, 2018 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants