models.py 507 B

1234567891011121314151617181920212223
  1. from django.db import models
  2. # Create your models here.
  3. class ChannelSettings(models.Model):
  4. id = models.AutoField(
  5. #max_length = 11, # 'max_length' is ignored when used with AutoField.
  6. primary_key = True,
  7. )
  8. channel = models.ForeignKey(
  9. "stats.Channel",
  10. on_delete = models.CASCADE,
  11. to_field = "channel_id",
  12. db_column = "channel",
  13. )
  14. interact = models.BooleanField(
  15. default = False,
  16. )
  17. class Meta:
  18. managed = False
  19. db_table = "channel_settings"
  20. #verbose_name_plural = "accounts"