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

AttributeError: 'Application' object has no attribute 'state,-average_score' #859

Open
sentry-io bot opened this issue Feb 24, 2023 · 4 comments
Open
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 24, 2023

Sentry Issue: DJANGO-GIRLS-WEBSITE-55

AttributeError: 'Application' object has no attribute 'state,-average_score'
(1 additional frame(s) were not displayed)
...
  File "django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "applications/decorators.py", line 28, in decorator
    return function(request, *args, **kwargs)
  File "applications/views.py", line 84, in application_list
    applications = get_applications_for_event(event, state, rsvp_status, order, user=request.user)
  File "applications/services.py", line 40, in get_applications_for_event
    applications = sorted(applications, key=lambda app: getattr(app, order), reverse=is_reversed)
  File "applications/services.py", line 40, in <lambda>
    applications = sorted(applications, key=lambda app: getattr(app, order), reverse=is_reversed)
@Nandika-A
Copy link
Contributor

Hello!
I am new to Django Girls. Can I work on this issue?

@amakarudze
Copy link
Contributor

Yes please @Nandika-A.

Nandika-A added a commit to Nandika-A/djangogirls that referenced this issue Aug 23, 2023
@Nandika-A
Copy link
Contributor

Hello @amakarudze! This issue is resolved in PR#909. It is also approved by the reviewer. Could you please consider it for merging or suggest any changes if required?

@amakarudze
Copy link
Contributor

Hey @Nandika-A, sorry for the delay, my mind has been elsewhere. Flake 8 is failing, if you can resolve the issues then I will merge it in.

amakarudze added a commit that referenced this issue Oct 2, 2023
Resolved issue #859. Fixed attribute error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants