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

Prevent blank keywords from overwriting default #6

Merged
merged 3 commits into from
Jul 23, 2014

Conversation

granteagon
Copy link
Contributor

When using the META_DEFAULT_KEYWORDS setting, defaults would be overwritten by a TitleMeta object with a blank keyword list. The end result being that a user could never go back to using default keywords if they blanked out the field.

Sorry, I don't know how to write the tests for this, but it's a simple patch.

When using the META_DEFAULT_KEYWORDS setting, defaults would be overwritten by a TitleMeta object with a blank keyword list.  The end result being that a user could never go back to using default keywords if they blanked out the field.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 27c27b5 on granteagon:develop into 9a8e564 on nephila:develop.

Default page title should come from `page.get_page_title`, not `page.get_title` as djangocms page title hint says "Overwrites what is displayed at the top of your browser or in bookmarks".
@granteagon
Copy link
Contributor Author

Also added a commit about page title defaulting to page.page_title instead of (still falls back to page.title).

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) when pulling ba70ae8 on granteagon:develop into 9a8e564 on nephila:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) when pulling 52a2639 on granteagon:develop into 9a8e564 on nephila:develop.

@yakky
Copy link
Member

yakky commented Jul 23, 2014

Thanks!

yakky added a commit that referenced this pull request Jul 23, 2014
Prevent blank keywords from overwriting default
@yakky yakky merged commit 7796a2f into nephila:develop Jul 23, 2014
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.

None yet

3 participants