Re: Incorrect post URL on invalid form submissions

2012-07-13 Thread Kevin
I refactored this into a single view (similar to the Django form example) and it's working fine...not to mention it's much more DRY. Feel free to disregard! Kevin On Friday, July 13, 2012 3:00:03 PM UTC-5, Kevin wrote: > > I'm new to Django so hopefully this will be trivial to solve. > > I have

Incorrect post URL on invalid form submissions

2012-07-13 Thread Kevin
I'm new to Django so hopefully this will be trivial to solve. I have a table of data I display in a view along with a simple form to add a new row of data to the table: def my_data_view(request, data_id): myData = MyData.objects.get(pk=data_id) if request.method == 'POST': myForm