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

500 on Kippo Github project create action when no project-manager is defined for KippoProject #38

Open
monkut opened this issue Dec 17, 2018 · 0 comments
Labels

Comments

@monkut
Copy link
Owner

monkut commented Dec 17, 2018

An exception is raised when a GithubProject for a KippoProject is attempted to be created via the KippoProject' admin action.

  File "/var/task/django/contrib/admin/options.py", line 1700, in changelist_view
  response = self.response_action(request, queryset=cl.get_queryset(request))
  File "/var/task/django/contrib/admin/options.py", line 1400, in response_action
  response = func(self, request, queryset)
  File "/var/task/projects/admin.py", line 134, in create_github_organizational_project_action
  description=kippo_project.github_project_description,
  File "/var/task/projects/models.py", line 242, in github_project_description
  description = (f"""project_manager: {self.project_manager.display_name}<br/>"""
AttributeError: 'NoneType' object has no attribute 'display_name'

Update to show error to user if project manager is not defined, or ignore project manager input/display if not given.

@monkut monkut added the bug label Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant