Initial commit

This commit is contained in:
minguezsanzjuanjose
2026-04-11 03:31:05 +02:00
commit 1e78ad3a40
15 changed files with 244 additions and 0 deletions

11
apps/common/utils.py Normal file
View File

@@ -0,0 +1,11 @@
# Ejemplo de limpieza de tipos para SQL
def clean_sql_string(value):
if value is None:
return ""
return str(value).strip().replace("'", "''")
def clean_sql_int(value):
try:
return int(value)
except (ValueError, TypeError):
return 0