Skip to content
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

Test that nested classes also have explicit base classes #52

Closed
sobolevn opened this issue Jul 19, 2018 · 0 comments · Fixed by #96
Closed

Test that nested classes also have explicit base classes #52

sobolevn opened this issue Jul 19, 2018 · 0 comments · Fixed by #96
Labels
feature New feature or request help wanted Extra attention is needed level:starter Good for newcomers

Comments

@sobolevn
Copy link
Member

sobolevn commented Jul 19, 2018

We need to be sure that cases like:

class Model(models.Model):
     class Meta: ...  # error here, needs explicit base class

are covered.

Correct way to write this example is:

class Model(models.Model):
     class Meta(object): ... 

This should work for all NESTED_CLASSES_WHITELIST.

@sobolevn sobolevn added feature New feature or request help wanted Extra attention is needed level:starter Good for newcomers labels Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed level:starter Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant