Gonzalo Amadio
Gonzalo Amadio
UPDATE: If I force the parameter no_cache=True, i.e, I change for this lines in the function: ``` def _validate_dob(value): oag = global_preferences.get('general__oldest_allowed_age', no_cache=True) yag = global_preferences.get('general__youngest_allowed_age', no_cache=True) ``` I got...
One more thing. If I execute the same code, in my django shell. It works ok. In [1]: from dynamic_preferences.registries import global_preferences_registry In [2]: global_preferences = global_preferences_registry.manager() In [3]: global_preferences.get('general__oldest_allowed_age',...
@EliotBerriot It is a validator of a model. So I have the error while trying to save one instance of a model in the admin. So the server is running,...
Just to expand a comment I made before. This is a snippet of the PreferenceRegistry, in registries.py ``` class PreferenceRegistry(persisting_theory.Registry): // SOME OTHER CODE preference_model = None def manager(self, **kwargs):...
SOLVED: **But still don't know really why, I guess it has something to be with the initialisation process** **I would like to figure it out** I put the get of...
Hi @artem, can you share how are you doing? The fix On Wed, 4 Sep 2019 at 12:59 PM, Artem wrote: > @EliotBerriot That makes sense. Thanks > for the...
Does this mean that if I have a multi-db project, I can not use pytest for tests? I have a legacy DB and I created an app with some models...
Hi, @bluetech I have made a reusable app (let's call it API) that has this models unmanaged models. Then (in same repo) another "testapp" that install this API In this...
One more comment. I have run unittest with verbose option. This is the output ``` ❯ ./manage.py test --settings=testapp.settings_test --verbosity=2 Using existing test database for alias 'default' ('db_test.sqlite3')... Operations to...
> Can I see how the `sample_groups` field is defined in your serializer?. Including `HoldbackGroupSerializer` will be helpful cuz it's the one that has been included here `NestedField(HoldbackGroupSerializer, many=True, required=False,...