Concat on Update

9 views
Skip to first unread message

Àlex Pérez

unread,
Dec 28, 2012, 7:48:01 AM12/28/12
to django...@googlegroups.com
Hello, 

Someone know how to do that in django?:

url = "basE_url"
query.update(url= url + models.F("slug_nombre")),

and the result should be the concatenation of de column  url like "basE_url(slug_nombre)"

I'm a little bit confused, because I understand why doesn't work that, but don't know why the orm doesn't detect the types of the params and make an aritmethic funcion or concatenate function.

thanks!



--
Alex Perez
alex....@bebabum.com
 
 bebabum be successful

c/ Còrsega 301-303, Àtic 2
08008 Barcelona
http://www.bebabum.com
http://www.facebook.com/bebabum
http://twitter.com/bebabum

This message is intended exclusively for its addressee and may contain
information that is confidential and protected by professional privilege. 
If you are not the intended recipient you are hereby notified that any 
dissemination, copy or disclosure of this communication is strictly prohibited by law.

Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si no es vd. el destinatario indicado,
queda notificado que la utilización, divulgación y/o copia sin autorización 
está prohibida en virtud de la legislación vigente.

Le informamos que los datos personales que facilite/ha facilitado pasarán a
formar parte de un fichero responsabilidad de bebabum, S.L. y que tiene 
por finalidad gestionar las relaciones con usted. 
Tiene derecho al acceso, rectificación cancelación y oposición en nuestra
oficina ubicada en c/ Còrsega 301-303, Àtic 2 de Barcelona o a la dirección de e-mail lo...@bebabum.com
Reply all
Reply to author
Forward
0 new messages