On Thu, Dec 6, 2012 at 7:25 AM, Larry Martell wrote:
>>
>> orm['travelbox.AccommodationImage'].objects.all().update(file='travelbox/accommodation/'
>> + F('url'))
>>
>> However that doesn't work - it executes the following SQL:
>>
>> UPDATE `travelbox_accommodationimage` SET `file` =
>>
On Thu, Dec 6, 2012 at 6:18 AM, Francis Devereux wrote:
> Hi,
>
> I currently have the following code in one of my migrations:
>
> cursor = connection.cursor()
> cursor.execute('''UPDATE travelbox_accommodationimage SET file =
> CONCAT('travelbox/accommodation/', url)''')
> transactio
Hi,
I currently have the following code in one of my migrations:
cursor = connection.cursor()
cursor.execute('''UPDATE travelbox_accommodationimage SET file =
CONCAT('travelbox/accommodation/', url)''')
transaction.commit_unless_managed()
This works for us (on MySQL, which we are us
3 matches
Mail list logo