Hey,

I have a Model, a ModelForm (that does other custom stuff aside from
just editing the Model) and a FormView. Everything works great for
creating the Model and running my custom logic to do other things.

I'm trying to create an Edit/Update View now. I tried looking at
UpdateView as mentioned in IRC. I'm not sure on how to use it for my
purposes, though. I'd be happy just creating another FormView but I
don't know how to set the Instance for my Model. I'm calling my view
from urls.py in this format:

MyProfileUpdateView.as_view(template_name = 'my_template.html')

I tried to send the as_view the instance from urls.py but I have no
access to the request object in urls.py and need the current User
instance to grab the correct Model instance.

Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to