Re: ForeignKey with different queryset from manager

2021-01-10 Thread Peter of the Norse
This is an interesting question. Thank you for asking it. I wasn’t able to find exactly what you are asking for. The closest I could find was https://docs.djangoproject.com/en/2.2/topics/db/queries/#using-a-custom-reverse-manager

ForeignKey with different queryset from manager

2020-12-14 Thread Jimmy Gawain
This is with Django v2.2. We use tombstoning via a custom BaseModelManager to mark items as deleted in the database but keep them around for reference. class BaseModelManager(models.Manager): def __init__(self, *args, **kwargs): self.include_tombstoned = kwargs.pop('include_tombstone