if request.method == 'GET':
if listing_id > '0':
listing=Listing.objects.get(pk=listing_id)
form = ListingForm(instance=listing)
else:
print "In listings GET source=",
request.session['source']
form = ListingForm(initial={'date':
request.session['date'],
'source': request.session['source'], 'agent': request.session
['agent']})
#form = ListingForm(instance=listing)
return render_to_response('wha/listing_form.html', {
'form': form,
'property': request.session['property'],
'agent': request.session['agent'],
'source': request.session['source'],
'date': dt, 'message': message}
)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---