Cast with AutoField results in a 'type does not exist' error in PostgreSQL 10.1

2018-07-11 Thread Andrew Standley
Hey all,  I've run across an issue and I'm not sure if what I have is a bug, or if I've just done something horribly wrong. I'm hoping one of you can help me work out what it is. The issue is that `AutoField.db_type` returns 'serial', which is a "syntactical sugar" (not a true type) in Postgre

Re: Django ORM Handling of Reverse Relationships and Multi-Value Relationships

2018-03-29 Thread Andrew Standley
Thank you all for the replies. @Josh Smeaton Essentially yes; specifically I was wondering whether I was failing to consider behaviour that couldn't be modeled via a Q object, since as you mention the current https://docs.djangoproject.com/en/2.0/topics/db/queries/#spanning-multi-valued-relati

Django ORM Handling of Reverse Relationships and Multi-Value Relationships

2018-03-29 Thread Andrew Standley
I have recently become acquainted with some ORM behaviour for reverse relationships that "makes no sense", and I'm hoping someone can explain the justification for the current behaviour. This specifically relates to `filter` behaviour referenced in 29271

Re: ManytoMany Field save_form_data has not support for through table

2018-01-21 Thread Andrew Standley
e tests? You could even open a new PR. > > Thanks, > Collin > 574-339-1060 > > > On Thu, Jan 18, 2018 at 12:40 AM, Andrew Standley > wrote: > >> Hi Collin, >> The patch seems to work perfectly with intermediate models without >> required fields. >>

Re: Default Authorization BackEnd Denying Permissions if Object Provided

2018-01-18 Thread Andrew Standley
comes to backends we don't have plenty of choices, and allowing them leverage each other will just make*/ /*it easier to write them. */ /Thanks for reading so far! :)/ On Wed, Jan 17, 2018 at 8:42 PM Andrew Standley mailto:astand...@linear-systems.com>> wrote: Mehmet,    

Re: ManytoMany Field save_form_data has not support for through table

2018-01-18 Thread Andrew Standley
Hi Collin, The patch seems to work perfectly with intermediate models without required fields. However looking over the pull request I noticed that there does not appears to be success tests for intermediate models with extra required fields. Is this something I could help out with? Cheers,

Re: Default Authorization BackEnd Denying Permissions if Object Provided

2018-01-17 Thread Andrew Standley
hoosing. On Wed, Jan 17, 2018 at 12:58 PM Andrew Standley mailto:astand...@linear-systems.com>> wrote: Hi Carlton,     Thanks for the thoughts. I just wanted to share my opinion on your options. 1. "Won't Fix"     I have yet to find anywhere the origin

Re: Default Authorization BackEnd Denying Permissions if Object Provided

2018-01-17 Thread Andrew Standley
e.com/d/msgid/django-developers/cab981b8-7dc7-4e9d-9dcc-442b36820cdf%40googlegroups.com <https://groups.google.com/d/msgid/django-developers/cab981b8-7dc7-4e9d-9dcc-442b36820cdf%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit *MailScanner has detected defin

Re: ManytoMany Field save_form_data has not support for through table

2018-01-16 Thread Andrew Standley
your case? https://github.com/django/django/pull/8981 <https://github.com/django/django/pull/8981> Thanks, Collin On Mon, Jan 15, 2018 at 5:14 PM, Andrew Standley mailto:astand...@linear-systems.com>> wrote: Greetings,     I've been messing around with trying

ManytoMany Field save_form_data has not support for through table

2018-01-15 Thread Andrew Standley
Greetings,     I've been messing around with trying to update some custom forms to instead be model forms, and I ran into something that struck me as odd. ModelForm relies on the models fields to select a default form field, and to save the returned form data. However the ManytoManyField does