-
Notifications
You must be signed in to change notification settings - Fork 0
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
add feedback form to answer detail page #3
base: main
Are you sure you want to change the base?
Conversation
apps/feedback/models/models.py
Outdated
help_text=_("(0 = not clear, 5 = very clear)"), null=True, blank=True | ||
) | ||
reliability_grade = models.PositiveSmallIntegerField( | ||
verbose_name=_("Do you find this KlimaatHelpdesk article reliable?"), |
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.
Hier staat nog KlimaatHelpdesk
apps/feedback/models/models.py
Outdated
user_email = models.EmailField( | ||
verbose_name=_("Email"), | ||
help_text=_("We will forward the expert's response when we receive it."), | ||
null=True, |
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.
null=True
hoeft nooit bij textvelden met blank. Blank zorgt er voor dat het db veld gevuld wordt met een lege string (""
)
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.
Dit geldt voor alle text/char velden in dit model.
apps/feedback/forms.py
Outdated
required=True, | ||
) | ||
reliability_grade = forms.IntegerField( | ||
label=_("Do you find this KlimaatHelpdesk article reliable?*"), |
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.
Hier staat nog KlimaatHelpdesk
apps/feedback/models/pages.py
Outdated
|
||
template = "feedback/feedback_form_page.html" | ||
context = self.get_context(request) | ||
Answer = apps.get_model(app_label='cms', model_name='Answer') |
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.
Waarom haal je op deze manier het model op? ipv gewoon importeren?
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.
omdat ik wagtail_helpdesk nog via pip install -e had geinstalleerd en dan werkt importeren niet. ik pas het aan.
No description provided.