Re: Feature request: get_first_or_404

2017-11-28 Thread Sergey Fedoseev
IMO it shouldn't be added to Django because the same thing can be done in one line: get_object_or_404(qs[:1]), but we could add such using to get_object_or_404() docs. On Wednesday, November 29, 2017 at 3:41:54 AM UTC+5, Piotr DomaƄski wrote: > > Currently we have get_object_or_404 and

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