Allow italics in a variety of content fields#4153
Conversation
|
Oh. Not quite ready. Problem with migrations. |
|
@ajrbyers I just wanted to make sure you saw this one is ready for review now. |
ajrbyers
left a comment
There was a problem hiding this comment.
I've just given this a once over and before I test it out I wondered if there was a reason why the Frozen Author records had all been convered to bleach fields?
Ah, yes it's because they get used in the carousel subtitle. We said we wanted to support italics in carousel text. |
|
@joemull just FYI this PR now has a conflict. |
d2a84ff to
e885510
Compare
|
@ajrbyers After rebasing I ran tests and picked up several things that needed to be addressed:
I think this calls for standardizing the corresponding Account model fields, so I've done that. What do you think? Re-requesting review since it's a significant enough change. |
ajrbyers
left a comment
There was a problem hiding this comment.
Thanks Joe, these changes look good. We should also consider how this will effect importers in the import plugin. Perhaps open an issue over there to check?
I also took the chance to get rid of null=True on these charfields.
Some FrozenAuthor fields are now bleached and blanks are stored as strings for simplicity and consistency. Because FrozenAuthor draws on the corresponding Account fields, we should give them the same treatment.
9642c9e to
85c3a29
Compare
This branch adds support for italics in a variety of content fields, especially those that might include journal titles or other titles of works that need italicization.
We can do this more easily and safely now thanks to safer storage of HTML in the database introduced in 1.5.1.
For the copyright text, I have opted to avoid putting the journal name altogether. This will require a retranslation of that string but I believe it is worth it because the existing translation is not ideal, because it's a partial sentence (excludes the journal name) and does not include punctuation as part of the translated string (the colon).

Closes #4097.