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: 'Project' object has no attribute 'project' #2526

Open
sentryliqd bot opened this issue Sep 11, 2023 · 5 comments
Open

AttributeError: 'Project' object has no attribute 'project' #2526

sentryliqd bot opened this issue Sep 11, 2023 · 5 comments

Comments

@sentryliqd
Copy link

sentryliqd bot commented Sep 11, 2023

Sentry Issue: APLUS-DEV-5J

AttributeError: 'Project' object has no attribute 'project'
(9 additional frame(s) were not displayed)
...
  File "apps/documents/views.py", line 40, in get_context_data
    context = super().get_context_data(**kwargs)
@goapunk
Copy link
Contributor

goapunk commented Sep 11, 2023

same as liqd/a4-meinberlin#5230

@hklarner
Copy link
Contributor

@goapunk can you reproduce this error? I have tried the following:

  1. create new project with name Investigation
  2. create several modules (3x map brainstorming, 2 added to project, 1 in draft)
  3. look at project timeline (no error, see screenshot)
  4. access attribute project of each of the modules (no error, see below)
>>> p = Project.objects.first()
>>> p
<Project: Investigation>
>>> for m in p.modules: print(m.project)
... 
Investigation
Investigation
Investigation
>>> for m in p.modules: print(m.is_draft)
... 
False
False
True

investigation

@goapunk
Copy link
Contributor

goapunk commented Sep 20, 2023

@hklarner I think you need to open the url of the module which is draft (you can't get there from the ui). One way probably is to add it to the project, open it in a new tab, hide it from the project again and then reload the tab

@t-j-q
Copy link
Contributor

t-j-q commented Sep 6, 2024

@goapunk Can I close this or should it stay as a reminder?

@goapunk
Copy link
Contributor

goapunk commented Sep 10, 2024

@TeaJayyy depends on whether we want to fix this bug (keep) or not (close) :)

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

3 participants