Hi, 

Im getting 'str' object is not callable and i have no idea why. 
What I'm doing is the following:

<a href="deletion_time/{{ buchung.6.id }}">delete</a>

buchung is a list and the 6th element oft hat list is an object with an
attribute id.

In my urls.py i did this:

(r'deletion_time/(?P<obj_id>\d+)/$', 'deletion_time'),

And the view looks like this:

def deletion_time(request, obj_id):
    buchung = Buchung.object.filter(id = obj_id)
    buchung.delete()
    return HttpResponseRedirect('/main/')

Can anyone tell me what's causing this error ?!

Kind regards

. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT-Entwickler 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 





-- 
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