-
Notifications
You must be signed in to change notification settings - Fork 3
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
Allow overriding signal for load data #1208
Comments
There are two
and
The former can be disabled by setting the I'd say thats what the issue requests? |
Sort of. LegacyDateMixin for example overrides the save method which I want to skip when I am importing data (or is this not a reasonable expectation?). I am not sure, honestly.... apis-core-rdf/apis_core/core/models.py Line 32 in 7c0c5f4
|
Ah, oke, so its about the |
Thanks. For consistency is a settings variable preferrable? Just asking because originally I had something like this in mind
|
Or maybe it's better to have a single flag for loaddata in settings that does nothing beyond importing the data - no signals and no preprocessing in save methods? |
I would not put it in the kwargs, I would put it as an attribute in the instance. So you can create an instance of whatever and set a |
I don't understand |
What I meant was a flag, say But if there is no need for such a behaviour except in this save method of DateMixin then this is a waste of time and I like your attribute solution better. |
It should be possible to disable post save signals for extracting data into, for example date fields when importing data
Related to #984
The text was updated successfully, but these errors were encountered: