Re: proposal: add special subclass of ForeignKey for storing ContentTypes

2017-04-05 Thread Adam Johnson
Sergey, I like the idea. It at least serves as a demonstration of what can be done with custom fields. The PoC shows it's not too much code either. Would you be looking to replace the existing FK's to ContentType too, e.g. in Admin and Auth? On 5 April 2017 at 06:24, Asif Saifuddin wrote: > Hi S

Re: proposal: add special subclass of ForeignKey for storing ContentTypes

2017-04-04 Thread Asif Saifuddin
Hi Sergey, I was also wondering why GenericForeignKey don't have direct subclass of ForeignKey while writing a dep about field API improvement. Though I am not 100% sure your implementation. Thanks for bringing it up. On Wednesday, April 5, 2017 at 2:46:31 AM UTC+6, Sergey Fedoseev wrote: >

proposal: add special subclass of ForeignKey for storing ContentTypes

2017-04-04 Thread Sergey Fedoseev
Hi all, Some time ago I created 'new feature` ticket and Tim Graham asked me to write here to get some feedback on the idea. So here it is. ContentType model is quite specific, so we could add the subclass of ForeignKey with some specific features.