safwanrahman / django-webpush

Web Push Notification Package for Django
GNU General Public License v3.0
362 stars 103 forks source link

Fixed unwanted error 500 if form data is missing #119

Closed OrsoBruno96 closed 1 year ago

OrsoBruno96 commented 1 year ago

If the request to save webpush data has some fields missing, an error 500 is generated.

I think that this is unintended behaviour. With this default fields an error 400 is generated instead, given the validation performed after.

safwanrahman commented 1 year ago

LGTM. r+