Closed hcastilho closed 2 years ago
My dear @hcastilho, I am confused... And I broke the thing. I don't know if this was your purpose, but if it was, great success!
To test I wanted to submit a report in PDF as a student.
I've cloned the branch and launched the portal as explained here . Loaded the test data and created a capstone in the admin portal.
These are the settings I used for testing purposes:
Capstone was created as expected: (student view)
Added the URL as a test, worked well, but the report section showed up as "Not accepting reports"
Noticed there was a Reports section on the admin panel, and thought that maybe I needed to create the report there (as if it was a unit). And I broke the app when I clicked it
Now.. Is this a me problem or have a stumbled across an actual error? The due date was today at midnight. I expect the reports to start as open and close at the defined due date.
Sorry Hugo 😄
The actual error message when going to http://localhost:8000/admin/capstone/report/add/
django.core.exceptions.FieldError: 'submited_at' cannot be specified for Report model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class ReportAdmin.
00:00 on the 12th is in the past days are from 00:00 till 23:59
The reports section in the backoffice is not supposed add reports (that is done by the students in the portal) so I didn't test it.
Feeling slight stupid now...
set everything to be in the future for the non-time-travelers, submitted (and updated) report 1 successfully
Is the submission of reports sequential? Do I need to close report 1 for report 1 resubmission to open up?
How do I have access to the reports? The backend doesn't show me where they are stored
If I click on the test_capstone
it breaks with django.core.exceptions.FieldError: 'submited_at' cannot be specified for Report model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class ReportAdmin.
Ahhhh So pretty! Found it!
Can I make a request and Add the slackID to this table? We don't have an easy way to deliver the reports with comments to the students so having the id to click and open the conversation on slack would help a lot
Resubmission of report 1 is concurrent with submission of report 2. I suggest opening and closing report submission for each instance on the back office individually.
Closes #197