Display of user model extension in admin

2016-06-13 Thread Larry Martell
I have extended the user model to another table I called UserInfo, and I added it to the add user admin page. So now when I go to add a user I see this on the page: User Info User Info: #1 If I edit a user that exists I see: User Info User Info: UserInfo object How can I remove that second lin

Re: Absolute beginner step by step

2016-06-13 Thread Gary Roach
I stand corrected. There is a new Tango With Django tutorial out. It uses Python 3.5 and Django 1.9. Try /media.readthedocs.org/pdf/tango-with-django/latest/tango-with-django.pdf Gary R On 06/11/2016 02:07 PM, Gary Roach wrote: If you don't mind working with Python2.7 and Django 1.7 you might

Re: Possible bug with UploadedFile and form validation?

2016-06-13 Thread Simon Charette
Hi Nick, `io.TextIOWrapper` objects close their wrapped file when they are garbage collected (e.g. `__del__()`). This is similar to how `File` objects close their underlying file descriptor when collected. In the case of your `clean()` method the `file` object can be garbaged collected as soon

Possible bug with UploadedFile and form validation?

2016-06-13 Thread Nick Sarbicki
I've got an odd bug in my system, and while I'm not 100% convinced it is a Django bug, I don't think it is due to me either so thought I'd ask here for some clarification. Essentially if you upload a file to a form. If that forms clean() method reads that file (in my case it gathers data and ma

Re: Hi - I'm new to Python and DJango

2016-06-13 Thread bobhaugen
On Thursday, June 2, 2016 at 9:30:46 AM UTC-5, luisza14 wrote: > > > There is some development in ERP but nothing stable or usable (not that I > known). > > So if you are interested in develop something could be great know about. > > This is NRP (Network Resource Planning), not ERP, but it w

Re: Expiration date option

2016-06-13 Thread 'David Turner' via Django users
Hi James Thanks for your answer as it has made me go back to putting business logic first which has then enabled me to come up with the right solution. Best -david On 10 June 2016 at 01:16, James Schneider wrote: > > > On Wed, Jun 8, 2016 at 9:25 AM, 'David Turner' via Django users < > django

Re: Absolute beginner step by step

2016-06-13 Thread ludovic coues
The django girls tutorial is also a very good ressource for beginner. http://tutorial.djangogirls.org/ 2016-06-11 23:45 GMT+02:00 Lee Hinde : > https://leanpub.com/tangowithdjango19/ > > > On Jun 11, 2016, at 2:07 PM, Gary Roach wrote: > > If you don't mind working with Python2.7 and Django 1.7 y