Jason Brechin

Results 12 comments of Jason Brechin

What about using Django's FK field to express the relationship between the two (which internally will use a `bar_id` field)? ```py class Bar(models.Model): pass class LegacyFoo(models.Model): bar = models.ForeignKey(Bar, null=True,...

Currently trying this (using pytest): ```py @pytest.fixture(scope='session', autouse=True) def setup_constance_prefix(worker_id): """For parallel test-running, use non-overlapping prefixes for Constance config vars to avoid clobbering.""" if worker_id: settings.CONSTANCE_REDIS_PREFIX = 'constance:{}:'.format(worker_id) ```

Can you provide an example of code that shows this behavior? I don't have an exact test for this, but there is a test that does a `.objects.create` and then...

@quantarb How are you inspecting the fields now? You could do something like this: ```py from computed_property import ComputedField for field in model._meta.fields: if isinstance(field, ComputedField): # do your thing...

That's a good idea! To clarify what you're suggesting: If `update_fields is None`, or the computed field name appears, then compute the value and save to the database. If `update_fields`...

It hasn't been tested with Django 2.2 yet. I'll take a look to see if I can tell what's going on.

I was running into trouble adding test support for various databases and updating for newer python and Django versions and then I lost track of this. Sorry about the delay....

@dustinmichels I think the issue was with documentation, and I've added new content to cover the scenario. If you're experiencing other issues, please re-open with more details.

@dustinmichels Thanks for revisiting this! I'm guessing the issue with the inlines is that there's not a natural "save" of the `Job` after the `Operation`s are added. This gets to...

@jam-lock If you're manually updating data using SQL statements in a database shell, it is not expected that it would compute and store the computed fields' values. This library depends...