Hi Sergiy,
Thanks for your help!
1) I tried overriding the GET request as you suggested and the print
statement never went through. It looks like by default it calls
`get_object()`, and my `get_object()` code is running, so I'm not sure why
it doesn't appear.
2) The form is appearing with the
Hi Sergiy,
Thanks for your help!
1) I tried overriding the GET request as you suggested and the print
statement never went through. It looks like by default it calls
`get_object()`, and my `get_object()` code is running, so I'm not sure why
it doesn't appear.
2) The form is appearing with the
Hello,
I had a similar problem (but I'm using DetailView for sending some
additional data) and I hope I can help
Usually editing page is using GET for receiving default data and POST
for sending data from form to view ( we are skipping ajax way)
1) You would like to set initial data to
On Wednesday 18 January 2017 14:26:52 Benjamin Dauer wrote:
> Hi Melvyn,
>
> That's exactly what I'm trying to do, but prior to making the changes
> it wasn't prepopulating. At each stage I tested and was getting blank
> fields albeit based off of the correct model.
>
> Maybe it's because I
Hi Melvyn,
That's exactly what I'm trying to do, but prior to making the changes it
wasn't prepopulating. At each stage I tested and was getting blank fields
albeit based off of the correct model.
Maybe it's because I don't provide the pk in the URL? I was trying to avoid
that.
On Wed, Jan 18,
On Wednesday 18 January 2017 04:44:01 dauer.benjamin wrote:
> Question for you all. Appreciate any insight you can give. So I have a
> class-based view (UpdateView) and a ModelForm. I want the form to
> pre-populate with data from a model instance.
It feels like you're doing work that's already
Hey folks,
Question for you all. Appreciate any insight you can give. So I have a
class-based view (UpdateView) and a ModelForm. I want the form to
pre-populate with data from a model instance. I've googled around a lot,
couldn't find a plug n' play solution. I have a partial solution but it
Thank you so much to both of you! I was looking at the wrong
documentation lol
kudos!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
You should be able to do it via foo_value = request.GET['foo'].
PS: The above should work for a post like /?foo=bar
On Mar 18, 4:06 pm, Jorge Romo wrote:
> Hello!
>
> I was trying to see if there's a way (I'm pretty sure there is a way)
> to prepopulate a form field
Hi.
When you setup urls, they can have dynamic parts in them, so you dont
need to use ?=, but could have an url foo/bar where your url would
grab the bar and turn it into a variable. Fx if you had an url like
this in your urls.py:
(r'^foo/(?P\w+)/$', 'my_view_name')
bar would become my_var, that
Hello!
I was trying to see if there's a way (I'm pretty sure there is a way)
to prepopulate a form field from an url. For example: /foo?=bar and
that in my form field "bar" is displayed. I have to work with java?
there is another way?
--~--~-~--~~~---~--~~
You
On 10/29/06, shidan <[EMAIL PROTECTED]> wrote:
>
> Hi, I want the same functionality as the ChangeManipulator where it
> prepopulates the form with
> the current values of the object, how can I do this with custom form
> manipulator.
Add flatten_data to it and call if when initializing
Hi, I want the same functionality as the ChangeManipulator where it
prepopulates the form with
the current values of the object, how can I do this with custom form
manipulator.
Shidan
--~--~-~--~~~---~--~~
You received this message because you are
13 matches
Mail list logo