diff options
author | 2020-12-22 00:06:25 +0100 | |
---|---|---|
committer | 2020-12-22 00:06:25 +0100 | |
commit | c68b0904a73b4b66ee6b5e50b806a4074b08c002 (patch) | |
tree | 6ef67102269f87ee5970ff8b0b19f256a400f83d /.coveragerc | |
parent | Merge pull request #439 from python-discord/ks123/sentry (diff) |
Make last_updated field automatically update.
Previously, we were operating under a bad assumption that we would be
updating the last_updated field in the RepositoryMetadata objects
whenever we updated the objects with new data from the GitHub API.
Upon closer inspection, this is not at all what we're doing, and some of
those repository objects had not been updated in over a year!
This introduces `auto_now` to the field, which will ensure that it is
automatically updated whenever the object is updated.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions