Commit 8f47a9c6 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis

astakos: pep8 fix

parent f82fa2e3
......@@ -1564,7 +1564,7 @@ class ProjectManager(ForUpdateManager):
relevant = model.o_states_q(model.RELEVANT_STATES)
return self.filter(flt, relevant).order_by(
'application__issue_date').select_related(
'application', 'application__owner', 'application__applicant')
'application', 'application__owner', 'application__applicant')
def search_by_name(self, *search_strings):
q = Q()
......
......@@ -126,10 +126,11 @@ def project_add(request):
@commit_on_success_strict()
def create_app_object(request, extra_context=None):
try:
summary = 'im/projects/projectapplication_form_summary.html'
return _create_object(
request,
template_name='im/projects/projectapplication_form.html',
summary_template_name='im/projects/projectapplication_form_summary.html',
summary_template_name=summary,
extra_context=extra_context,
post_save_redirect=reverse('project_list'),
form_class=ProjectApplicationForm,
......@@ -266,11 +267,12 @@ def project_modify(request, application_id):
@commit_on_success_strict()
def update_app_object(request, object_id, extra_context=None):
try:
summary = 'im/projects/projectapplication_form_summary.html'
return _update_object(
request,
object_id=object_id,
template_name='im/projects/projectapplication_form.html',
summary_template_name='im/projects/projectapplication_form_summary.html',
summary_template_name=summary,
extra_context=extra_context,
post_save_redirect=reverse('project_list'),
form_class=ProjectApplicationForm,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment