Re: Introduction

2019-05-13 Thread Ruchit Vithani
I'm working now on ticket #30463 , and I've figured out what the problem is. Here, when self._meta_ordering is called, it returns instances of OrderBy type and, when .join is called on that list, it throws an error saying: expected str instance but

Re: Django ORM Internals

2019-05-13 Thread J. Pic
Hi Mahdi, I would suggest reading the code and test code in the tests/ directory for the ORM. There might also be some videos from Django Under The Hood conferences, found some here: https://www.google.com/search?q=Django+Under+The+Hood+orm=vid Best -- You received this message because you

Re: Django ORM Internals

2019-05-13 Thread Mahdi Zareie
Great, thanks On Monday, May 13, 2019 at 1:17:08 PM UTC+4:30, J. Pic wrote: > > Hi Mahdi, > > I would suggest reading the code and test code in the tests/ directory for > the ORM. > > There might also be some videos from Django Under The Hood conferences, > found some here: > >

Re: Django ORM Internals

2019-05-13 Thread Adam Johnson
Yes there isn't much documented on the ORM internals, but there are other resources. The DUTH videos are a great start and inspired me to get started contributing to Django. Specifically: - https://www.youtube.com/watch?v=CGF-0csOjPw - https://www.youtube.com/watch?v=-4jhPRfCRSM -

(improvement) makemigrations app_label can and should always create migration only for this app_label

2019-05-13 Thread nnseva
Hi All, The %subj% is a discussion for the ticket https://code.djangoproject.com/ticket/30467 The theme has been touched also in the following threads: https://groups.google.com/forum/#!searchin/django-developers/makemigrations$20dependency%7Csort:date/django-developers/WgFacUFvgfs/cDoYO018NzIJ

How to deal with potential Django bugs you come accross

2019-05-13 Thread Erik Stein
Hello everyone -- From time to time I come accross a potential bug in Django core, but because of a tight schedule don't have the time to dive into it and write a proper ticket. How would you suggest to deal with it? Today e.g. – Using i18n_patterns with prefix_default_language=True, –

Re: Django ORM Internals

2019-05-13 Thread Aymeric Augustin
Hello, I would suggest https://www.youtube.com/watch?v=bgV39DlmZ2U if you'd like to understand how the ORM is structured in layers. -- Aymeric. Le lun. 13 mai 2019 à 12:16, Adam Johnson a écrit : > Yes there isn't much documented on the ORM internals, but there are other > resources. The

Re: Autocomplete fields and cleaned_data

2019-05-13 Thread Florian Apolloner
On Monday, May 13, 2019 at 8:25:56 PM UTC+2, Melvyn Sopacua | 3YOURMIND wrote: > > It seemingly removes the field from self.cleaned_data, which means we can > no longer validate it. > If that is the case it is a bug I'd say. -- You received this message because you are subscribed to the

Autocomplete fields and cleaned_data

2019-05-13 Thread Melvyn Sopacua | 3YOURMIND
I'm currently looking at a bug in our application, caused by autocomplete_fields on a ModelAdmin. It seemingly removes the field from self.cleaned_data, which means we can no longer validate it. I can reproduce this by removing/adding the field from/to autocomplete_fields and resubmitting the

Re: How to deal with potential Django bugs you come accross

2019-05-13 Thread Curtis Maloney
Hi Erik, On 5/13/19 8:22 PM, Erik Stein wrote: Hello everyone -- From time to time I come accross a potential bug in Django core, but because of a tight schedule don't have the time to dive into it and write a proper ticket. How would you suggest to deal with it? my personal position