Change ReviewRequestVisit.objects.update_visibility to use upsert.

Review Request #94 — Created Oct. 27, 2022 and updated

guest4001
Review Board
dunno?
Nonexistent
2e49a4a...
guest1135, guest4001
Django has a new(ish) method for handling upserts itself,
`update_or_create`. Switching to this actually fixes a bug in the
existing code where `update_visibility` wasn't updating the timestamp if
the visibility wasn't changing.

While updating this, I noticed that the unit tests for these weren't in
the `accounts/tests/` directory so I've moved that too.

Testing Done:
Ran unit tests.

Reviewed at https://reviews.reviewboard.org/r/12697/

What is testing? Live dangerous, merge and release on a friday afternoon..

Description From Last Updated

Mooi:)

guest5067guest5067
Loading...