Updated jquery

This commit is contained in:
absurdo 2024-01-07 01:11:48 +01:00
parent 56be4adbfa
commit e53840fecc
4 changed files with 13 additions and 4 deletions

View file

@ -109,7 +109,7 @@ class I18nField(PhangoField):
def get_type_sql(self):
return 'TEXT NOT NULL'
return 'JSON NOT NULL'
def obtain_lang_value(self, lang, value):

View file

@ -73,6 +73,9 @@ class SqlClass:
engine=create_engine("mysql+%s://%s:%s@%s/%s?charset=utf8mb4" % (self.connection['db_type'], self.connection['user'], self.connection['password'], self.connection['host'], self.connection['db']), pool_recycle=self.pool_recycle, echo_pool=True, pool_size=self.pool_size, pool_pre_ping=True)
#Postgre
#engine = create_engine("postgresql+psycopg2://scott:tiger@localhost:5432/mydatabase")
except:
e = sys.exc_info()[0]
v = sys.exc_info()[1]