Comp-490-SeniorProject / site

MIT License
0 stars 1 forks source link

Ensure a new device's owner is the current user #46

Closed MarkKoz closed 2 years ago

MarkKoz commented 2 years ago

Ignore any value provided for the owner field and instead use a default value, which is the current user. DRF permits unknown fields, so it does not raise an error for owner despite it being hidden. This is not ideal, but it's not worth the effort to error for unknown fields.