Re: Multiple model form (not in line) on same page

2015-09-07 Thread Luis Zárate
Hi, Sorry some time ago I saw this project https://github.com/sikaondrej/django-multi-model-form, but now is not found, I did a copy of the code, but it is in spanish, I don't have time to translate this now but can be useful. -- You received this message because you are subscribed to the

Multiple model form (not in line) on same page

2015-09-07 Thread Arindam sarkar
Friends , I need to put two model forms on my home page ( http://www.schoolofdelopers.in ). Right now there is

Formset questions: data vs. initial values

2015-09-07 Thread Carsten Fuchs
Dear Django group, after having read all of the Django docs that I could find, I still have two questions about the proper use of formsets. Summary first: 1. What is a good way to make sure the data received in the POST request agrees with the "initial" data (number of items and items

Re: Missing/inconsistent GenericIPAddressField validation?

2015-09-07 Thread 'Tom Evans' via Django users
On Mon, Sep 7, 2015 at 12:33 PM, Hans S. Tømmerholt wrote: > GenericIPAddressField isn't intended to represent a CIDR address, which I > guess is what I'm trying to put into it. > > There is stuff like this: > https://pypi.python.org/pypi/django-netfields/0.2.1 +1 This is what

Re: Missing/inconsistent GenericIPAddressField validation?

2015-09-07 Thread Hans S . Tømmerholt
On Mon, 07 Sep 2015 12:41:15 +0200, Hans S. Tømmerholt wrote: Hello. In a nutshell: It appears the validator applied to a GenericIPAddressField form field doesn't allow an IP address with a netmask. But saving the same thing to a PostgreSQL database via a model works

Missing/inconsistent GenericIPAddressField validation?

2015-09-07 Thread Hans S . Tømmerholt
Hello. In a nutshell: It appears the validator applied to a GenericIPAddressField form field doesn't allow an IP address with a netmask. But saving the same thing to a PostgreSQL database via a model works just fine. As far as I can tell, both model and form fields use the same