-
Notifications
You must be signed in to change notification settings - Fork 21
Add support for Django 2.1 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 367
💛 - Coveralls |
|
Is there a reason why you want Django 2.1 support back? Note that it is already 7 months overdue. Maybe we should discuss, whether there should be an option to disable
Furthermore I had to introduce the |
|
@jerch in fact your suggestion of making this an option that can be enabled even on newer Django versions makes more sense, as some uses of DCF might rely on the models |
Ah good point, this also would need some stronger emphasis for the Edit: |
|
@mobiware Thinking more about the But I am not sure, what the exact expectations of Going two steps back and looking at Django docs and why there is an ability to overload Carried over to computed fields it is again the difference between using Plz dont get me wrong, I am not against doing this, but I am not yet convinced that calling |
|
@jerch To give you perhaps a bit more context, we have an indexing system that indexes model object to speed up searches and we want to allow searches also on related fields. Imagine for instance a In fact index refresh takes place in a We could have indexing take place as a background task on a regular basis but we wanted the index to be updated in real time whenever something changes, so we thought we could use DCF dependency resolving capabilities to good use to solve this problem. |
|
@mobiware For that particular case - would it be easier for you with a custom signal, that indicates, that some cfs were just updated, maybe with the affected models/records in arguments? While thinking about it - there is another problem from directly invoking The db will be in de-sync state in between, while the update cascade is running. Technically it is only safe to rely on computed fields, after the initial |
|
@jerch yes a custom signal would also definitely work |
|
@mobiware If this here is not pressing for you, I suggest we try to get the multi table thingy working first. Then we can dig into this here. My current gut feeling regarding this here is somewhat along custom signals for the inter-model updates and maybe some way to overload |
|
@jerch sure, multi-table is more important of course |
Adding back support for Django 2.1