benjfield
benjfield
Do we have an update on this please? Gorm 1.9 has been dead for over a year and is pinned to use a version of a postgres driver that is...
The cleanest way I've found is doing this: ``` class MyFactoryCreateRelated(MyFactory): @classmethod def _create(cls, model_class, *args, **kwargs): return super()._build(model_class, *args, **kwargs ``` As long as you don't have any custom...
Or perhaps this would be helpful: ``` class BuildCreateRelatedMixin(): @classmethod def build_but_create_related(cls, *args, **kwargs): prior_create = cls._create cls._create = cls._build object = cls.create(*args, **kwargs) cls._create = prior_create return object ```
I don't believe i have assign permissions
I have this problem too - this is a problem for any unordered queries i.e coming from a map. Unless I have it wrong, that flag only allows you to...