mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 11:38:39 +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 %}
|
||||
|
||||
<!-- Form mesages -->
|
||||
{% include "includes/form_errors.html" with form=form %}
|
||||
{% block messages %}
|
||||
{% include "includes/form_messages.html" %}
|
||||
{% endblock messages%}
|
||||
|
|
|
@ -357,10 +357,8 @@ class PortfolioMembersView(PortfolioMembersPermissionView, View):
|
|||
|
||||
class NewMemberView(PortfolioMembersPermissionView, FormMixin):
|
||||
|
||||
model = UserPortfolioPermission
|
||||
template_name = "portfolio_members_add_new.html"
|
||||
form_class = portfolioForms.NewMemberForm
|
||||
context_object_name = "userPortfolioPermission"
|
||||
|
||||
def get_object(self, queryset=None):
|
||||
"""Get the portfolio object based on the session."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue