Francisco Maria Moyano Casco
2018-03-25 14:37:42 UTC
Hi,
I'm working on Tryton 4-2. I'm trying to delete some class attributes, due to a migration, but I had no success.
The code I use is the next one:
......
if table.column_exist('water'):
table.drop_column('water')
if hasattr(cls,'water'):
del cls.water
.......
Any clue why this doesn't work?
Thanks
Francisco
I'm working on Tryton 4-2. I'm trying to delete some class attributes, due to a migration, but I had no success.
The code I use is the next one:
......
if table.column_exist('water'):
table.drop_column('water')
if hasattr(cls,'water'):
del cls.water
.......
Any clue why this doesn't work?
Thanks
Francisco
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/ad830319-141e-43e1-84ac-609cb62e1dbd%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/ad830319-141e-43e1-84ac-609cb62e1dbd%40googlegroups.com.