mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
linted again (and some experiments with form validation)
This commit is contained in:
parent
5b5ebadd9c
commit
0af4727c56
2 changed files with 1 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
{% block portfolio_content %}
|
{% block portfolio_content %}
|
||||||
|
|
||||||
<!-- Form mesages -->
|
<!-- Form mesages -->
|
||||||
|
{% include "includes/form_errors.html" with form=form %}
|
||||||
{% block messages %}
|
{% block messages %}
|
||||||
{% include "includes/form_messages.html" %}
|
{% include "includes/form_messages.html" %}
|
||||||
{% endblock messages%}
|
{% endblock messages%}
|
||||||
|
|
|
@ -357,10 +357,8 @@ class PortfolioMembersView(PortfolioMembersPermissionView, View):
|
||||||
|
|
||||||
class NewMemberView(PortfolioMembersPermissionView, FormMixin):
|
class NewMemberView(PortfolioMembersPermissionView, FormMixin):
|
||||||
|
|
||||||
model = UserPortfolioPermission
|
|
||||||
template_name = "portfolio_members_add_new.html"
|
template_name = "portfolio_members_add_new.html"
|
||||||
form_class = portfolioForms.NewMemberForm
|
form_class = portfolioForms.NewMemberForm
|
||||||
context_object_name = "userPortfolioPermission"
|
|
||||||
|
|
||||||
def get_object(self, queryset=None):
|
def get_object(self, queryset=None):
|
||||||
"""Get the portfolio object based on the session."""
|
"""Get the portfolio object based on the session."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue