netzkolchose / django-computedfields

Provides autogenerated autoupdated database fields for model methods.
MIT License
94 stars 14 forks source link

custom resolver signals #58

Open jerch opened 4 years ago

jerch commented 4 years ago

Shall fix #56.

This is just a proof of concept currently with hacked in signal dispatching for update_dependent.

TODO:

FYI: @mobiware

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 364


Totals Coverage Status
Change from base Build 354: 0.08%
Covered Lines: 986
Relevant Lines: 1013

💛 - Coveralls
jerch commented 2 years ago

@mobiware Are you still interested in the signal feature? Ive found another use case with django-solo, which might benefit from update signals (it caches a single instance to reduce db interactions, which ofc would miss updates on the db values without any way to mark the cache entry as outdated).