On Wednesday 30 December 2015 08:40:17 martin f krafft wrote:
> also sprach Shai Berger <[email protected]> [2015-12-10 08:38 +1300]:
> > As far as I can see, you are trying to implement it in the model,
> > rather than as a new kind of field. Try to write
> > ExtendedGenericForeignKey, and I think things would look much
> > better...
> 
> Hi, thanks for your response and sorry for taking such a long time
> to follow-up.
> 
No need to apologize, we all have lives outside of Django...

> I've tried implementing this as a field at the very beginning, but
> I had an incredibly hard time figuring out which methods I need to
> provide. I don't suppose you know of any guidelines, other than the
> GenericForeignKey code (which I've still not fully understood) that
> could help?

Not really. I'd just advise you to use GenericForeignKey as a base class 
rather than a guideline.

Shai.

Reply via email to