Skip to content
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

Fix 502 errors on resources list page #855

Merged
merged 1 commit into from
Oct 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cadasta/resources/views/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def filter_archived_resources(self, view, obj):
def get_resource_list(self):
return self.get_queryset()

def get_context_data(self, *args, **kwargs):
context = super().get_context_data(*args, **kwargs)
context['success_url'] = None
return context


class ProjectResourcesAdd(LoginPermissionRequiredMixin,
mixins.ProjectResourceMixin,
Expand Down Expand Up @@ -102,6 +107,7 @@ def get_context_data(self, *args, **kwargs):
]

context['attachment_list'] = attachment_list
context['success_url'] = None
return context


Expand Down