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
Added 'privacy_policy_reading_level_url' to Product model #2004
Conversation
@@ -20,6 +20,8 @@ export default class Criterion extends React.Component { | |||
let meta = this.props.meta; | |||
let fullClass = `criterion criterion-${meta.class} criterion-${meta.id}`; | |||
|
|||
console.log(meta); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rogue console log~~
@@ -191,6 +193,12 @@ class Product(models.Model): | |||
max_length=2, | |||
) | |||
|
|||
privacy_policy_reading_level_url = models.URLField( | |||
max_length=2048, | |||
help_text='Link to this privacy policy reading level', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kristinashu let me know if help text for this the "reading level url" field makes sense... I don't know how to better describe it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there's a migration still missing (the max_length/help_text one. You can probably just delete 0010+ and then rerun make migrations
). Also, can you update factory.py so that the Product faker knows to come up with fake URLs for the new fields?
kk I wasn't sure if I should update |
@@ -29,7 +29,7 @@ export default class Criterion extends React.Component { | |||
<button onClick={() => this.toggle()} className={this.state.helptextVisible ? `open` : `closed`}></button> | |||
} | |||
</p> | |||
<p className="rating">{ meta.answer } <span className="emoji"></span></p> | |||
<p className="rating"><span dangerouslySetInnerHTML={{__html: meta.answer}}></span> <span className="emoji"></span></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #2006 to look at this later.
Yes! Just checked it out on staging. This is perfect! |
Related to #1892