Enrique Soria
Enrique Soria
It can be solved by overriding [fallback_undefined](https://django-modeltranslation.readthedocs.io/en/latest/registration.html#TranslationOptions.fallback_undefined): ```python class Product(models.Model): published = models.BooleanField(...) ``` ```python @register(Product) class ProductTranslationOptions(TranslationOptions): fields = ('published', ) fallback_undefined = { "published": None, } ```
Same problem here. I'm working on a project and I need to translate `option` attribute in this model. Is there a way to manage this scenario? ```python class AttributeOption(models.Model): group...
Yes, this is the expected behaviour. Keep in mind that this gets executed **after** deletion. If you need the `pk` probably you should be using `BEFORE_DELETE`. Similarly, on `BEFORE_CREATE` the...
I think that allowing to change default prefix is a must. Meanwhile you can use this hack: ```python # Override default value of environ_prefix Value.__init__ = partialmethod(Value.__init__, environ_prefix=None) ```
What about [girder/django-composed-configuration](https://github.com/girder/django-composed-configuration)?
It's not exactly the same, but you could use a `KeyValueList` Something like this: ```python class QuickStats(KeyValueList): def get_data(self): return { "Sessions": 21813, "Users": 14763, } ```
Can you try to update django-lifecycle to the latest version? Maybe #121 fixes it
I need to do some research, but it looks that we'll need to revert #121 because we fixed [a gotcha](https://en.wikipedia.org/wiki/Gotcha_(programming)). PS: thanks for providing a valid test!
@mjl For your use case, would it work if you change to `BEFORE_UPDATE` and remove the `save()`? ```python class Entry(models.Model): document = models.BinaryField(blank=True, null=True) document_received_ts = models.DateTimeField(null=True) @hook(BEFORE_UPDATE, when='document', was=None,...
> Anything I can do to help track this down? I need a better understanding on how `on_commit` works in order to make a decision that works for everyone. I've...