Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

models.py 1.2 KiB

123456789101112131415161718192021222324
  1. from django.db import models
  2. # Create your models here.
  3. # This is an auto-generated Django model module.
  4. # You'll have to do the following manually to clean this up:
  5. # * Rearrange models' order
  6. # * Make sure each model has one field with primary_key=True
  7. # * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
  8. # * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
  9. # Feel free to rename the models, but don't rename db_table values or field names.
  10. from django.db import models
  11. class UserDeviceInformation(models.Model):
  12. device = models.CharField(db_column='Device', max_length=255, blank=True, null=True) # Field name made lowercase.
  13. browser = models.CharField(db_column='Browser', max_length=255, blank=True, null=True) # Field name made lowercase.
  14. date = models.CharField(db_column='Date', max_length=255, blank=True, null=True) # Field name made lowercase.
  15. session_id = models.CharField(db_column='Session_ID', max_length=255, blank=True, primary_key=True) # Field name made lowercase.
  16. class Meta:
  17. managed = False
  18. db_table = 'user_device_information'
  19. verbose_name_plural = "User Information"
  20. ordering = ['date']