Closed larsgroeber closed 6 years ago
@Larsg7 the Waitlist Endpoint does not expect a "partner": <value>
key-value pair.
Just remove this Key and it should work perfect.
Request
{
"user_firstname": "Lars",
"user_lastname": "Gr\u00f6ber",
"user_login": "s0053274",
"user_mail": "s000@email.com",
"user_matrikel": "doesNotExist",
"graduation": "BA",
"notes": "\"\"",
"institutes": [
{
"id": 1,
"name": "IAP",
"graduation": "BA",
"places": 8,
"semesterhalf": 1,
"notes": null
},
{
"id": 3,
"name": "PI",
"graduation": "BA",
"places": 8,
"semesterhalf": 2,
"notes": null
}
],
"status": null,
"institute_firsthalf": "IAP",
"institute_secondhalf": "PI"
}
Response
AttributeError at /api/waitlist/
'FpWaitlist' object has no attribute 'partner'
+siehe oben
Ok, request geht aber trotzdem durch und Nutzer wird auf die Warteliste geschrieben => Beim zweiten Versuch gibt es einen 400 Fehler und Nutzer steht in der Warteliste Tabelle.
Gleicher Fehler beim Abmelden von der Warteliste.
Sorry, my fault didn't read the Traceback carefully. It's an issue of the email function. Will be fixed soon.
Fixed via #52
Response
Request