models.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. from django.db import models
  2. # Create your models here.
  3. class Template(models.Model):
  4. nome = models.CharField(max_length=40)
  5. soggetto = models.CharField(max_length=256,null=False,default="")
  6. oggetto = models.TextField(db_column='oggetto')
  7. html = models.TextField(db_column='html')
  8. enabled = models.BooleanField(default=1,null=False)
  9. html = models.BooleanField(default=0,null=False)
  10. note = models.TextField(db_column='note',default='')
  11. class Meta:
  12. ordering = ['id']
  13. db_table = 'template5'
  14. managed = False
  15. '''
  16. nota: mi sa che questi template sono stati solo pensati e mai creati/utilizzati:
  17. provando a disattivarli, viene fuori un errore nell'app causali
  18. '''
  19. class TemplateAdmin(models.Model):
  20. nome = models.CharField(max_length=40)
  21. soggetto = models.CharField(max_length=256,null=False,default="")
  22. oggetto = models.TextField(db_column='oggetto')
  23. html = models.TextField(db_column='html')
  24. enabled = models.BooleanField(default=1,null=False)
  25. html = models.BooleanField(default=0,null=False)
  26. class Meta:
  27. ordering = ['id']
  28. db_table = 'template5_admin'
  29. managed = False
  30. class TemplateAccount(models.Model):
  31. nome = models.CharField(max_length=40)
  32. soggetto = models.CharField(max_length=256,null=False,default="")
  33. oggetto = models.TextField(db_column='oggetto')
  34. html = models.TextField(db_column='html')
  35. enabled = models.BooleanField(default=1,null=False)
  36. html = models.BooleanField(default=0,null=False)
  37. class Meta:
  38. ordering = ['id']
  39. db_table = 'template5_account'
  40. managed = False
  41. class TemplateOther(models.Model):
  42. nome = models.CharField(max_length=40)
  43. soggetto = models.CharField(max_length=256,null=False,default="")
  44. oggetto = models.TextField(db_column='oggetto')
  45. html = models.TextField(db_column='html')
  46. enabled = models.BooleanField(default=1,null=False)
  47. html = models.BooleanField(default=0,null=False)
  48. class Meta:
  49. ordering = ['id']
  50. db_table = 'template5_Other'
  51. managed = False