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

Fix corner case with Django 1.7 #3892

Merged
merged 2 commits into from
Feb 23, 2015

Conversation

yakky
Copy link
Member

@yakky yakky commented Feb 22, 2015

Fix #3891

Apparently use of the model reference lead to the db_table issue documented above.
Passing it as string solves the issue.
The test checks a side effect of the above leak which leads to not returning attached fields for models with messed up db_table

@yakky yakky added this to the 3.0.11 milestone Feb 22, 2015
@yakky
Copy link
Member Author

yakky commented Feb 22, 2015

@mkoistinen you target a 3.0.11 release at the end of the month, right?

@yakky
Copy link
Member Author

yakky commented Feb 22, 2015

@ojii @mkoistinen might have a few more eyeballs on this?

name='category',
parent=None
)
self.assertEqual(len(example.description._get_attached_fields()), 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're at it, maybe also test that the attached field is the one you expect.

@yakky
Copy link
Member Author

yakky commented Feb 23, 2015

Here you go

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.36%) to 87.25% when pulling 235e9ed on yakky:feature/fix_dbtable into 3fc5f84 on divio:support/3.0.x.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.36%) to 87.25% when pulling 235e9ed on yakky:feature/fix_dbtable into 3fc5f84 on divio:support/3.0.x.

@coveralls
Copy link

coveralls commented Feb 23, 2015

Coverage Status

Coverage decreased (-0.1%) to 87.48% when pulling 235e9ed on yakky:feature/fix_dbtable into 3fc5f84 on divio:support/3.0.x.

ojii added a commit that referenced this pull request Feb 23, 2015
@ojii ojii merged commit 747ac87 into django-cms:support/3.0.x Feb 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants