django-auditlog
django-auditlog copied to clipboard
Make timestamp of LogEntry overwritable
- Replaced
auto_now_add=Truewithdefault=timezone.now - Added two testcases
- Added migration
This is very handy in order to import historic data from another source.
This relates to #199
Codecov Report
Merging #200 into master will increase coverage by
0.15%. The diff coverage is100%.
@@ Coverage Diff @@
## master #200 +/- ##
==========================================
+ Coverage 83.43% 83.59% +0.15%
==========================================
Files 19 20 +1
Lines 513 518 +5
==========================================
+ Hits 428 433 +5
Misses 85 85
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/auditlog/models.py | 83.42% <100%> (ø) |
:arrow_up: |
| ...tlog/migrations/0008_logentry_timestamp_default.py | 100% <100%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update a22978e...2f09c37. Read the comment docs.
Codecov Report
Merging #200 into master will increase coverage by
0.15%. The diff coverage is100%.
@@ Coverage Diff @@
## master #200 +/- ##
==========================================
+ Coverage 83.43% 83.59% +0.15%
==========================================
Files 19 20 +1
Lines 513 518 +5
==========================================
+ Hits 428 433 +5
Misses 85 85
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/auditlog/models.py | 83.42% <100%> (ø) |
:arrow_up: |
| ...tlog/migrations/0008_logentry_timestamp_default.py | 100% <100%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update a22978e...2f09c37. Read the comment docs.
Hi! Thank you for your PR. Could you rebase, please ? Thanks
Superseded by https://github.com/jazzband/django-auditlog/pull/478