model upgrade
This commit is contained in:
parent
0b619f85f1
commit
1e8f05304a
1 changed files with 15 additions and 11 deletions
|
@ -23,40 +23,44 @@ class Camera(models.Model):
|
||||||
|
|
||||||
|
|
||||||
class Device(models.Model):
|
class Device(models.Model):
|
||||||
|
architecture = models.JSONField(default=dict)
|
||||||
battery = models.JSONField(default=dict)
|
battery = models.JSONField(default=dict)
|
||||||
architecture = models.CharField(max_length=100)
|
before_install = models.JSONField(default=dict, null=True) # dict or str
|
||||||
before_install = models.JSONField(default=dict) # dict or str
|
|
||||||
bluetooth = models.ForeignKey(Bluetooth, on_delete=models.CASCADE)
|
bluetooth = models.ForeignKey(Bluetooth, on_delete=models.CASCADE)
|
||||||
cameras = models.ManyToManyField(Camera)
|
cameras = models.ManyToManyField(Camera)
|
||||||
cpu = models.CharField(max_length=100)
|
|
||||||
codename = models.CharField(max_length=100)
|
codename = models.CharField(max_length=100)
|
||||||
cpu_cores = models.CharField(max_length=100)
|
cpu = models.CharField(max_length=100)
|
||||||
|
cpu_cores = models.IntegerField(default=1)
|
||||||
cpu_freq = models.CharField(max_length=100)
|
cpu_freq = models.CharField(max_length=100)
|
||||||
current_branch = models.FloatField(default=None)
|
current_branch = models.FloatField(default=None)
|
||||||
download_boot = models.CharField(max_length=100)
|
custom_recovery_link = models.URLField(max_length=200, null=True)
|
||||||
dimensions = models.CharField(max_length=100)
|
download_boot = models.CharField(max_length=200)
|
||||||
|
dimensions = models.JSONField(default=dict, null=True)
|
||||||
gpu = models.CharField(max_length=100)
|
gpu = models.CharField(max_length=100)
|
||||||
image = models.CharField(max_length=100)
|
image = models.CharField(max_length=100)
|
||||||
install_method = models.CharField(max_length=100)
|
install_method = models.CharField(max_length=100)
|
||||||
|
is_ab_device = models.BooleanField(null=True)
|
||||||
kernel = models.CharField(max_length=100)
|
kernel = models.CharField(max_length=100)
|
||||||
maintainers = ArrayField(models.CharField(max_length=100), default=None)
|
maintainers = ArrayField(models.CharField(max_length=100), default=None)
|
||||||
device_models = ArrayField(models.CharField(max_length=100), default=None)
|
device_models = ArrayField(models.CharField(max_length=100), default=None)
|
||||||
peripherals = ArrayField(models.CharField(max_length=100), default=None)
|
|
||||||
name = models.CharField(max_length=100)
|
name = models.CharField(max_length=100)
|
||||||
recovery_boot = models.CharField(max_length=100)
|
network = ArrayField(models.CharField(max_length=100), default=None)
|
||||||
|
peripherals = ArrayField(models.CharField(max_length=100), default=None)
|
||||||
ram = models.CharField(max_length=100)
|
ram = models.CharField(max_length=100)
|
||||||
|
recovery_boot = models.CharField(max_length=100)
|
||||||
recovery_reboot = models.CharField(max_length=100)
|
recovery_reboot = models.CharField(max_length=100)
|
||||||
release = models.CharField(max_length=100)
|
release = models.DateField()
|
||||||
screen = models.JSONField(default=dict) # dict or str
|
screen = models.JSONField(default=dict) # dict or str
|
||||||
sdcard = models.JSONField(default=dict) # dict or str{1}
|
sdcard = models.JSONField(default=dict) # dict or str{1}
|
||||||
storage = models.CharField(max_length=100)
|
|
||||||
soc = models.CharField(max_length=100)
|
soc = models.CharField(max_length=100)
|
||||||
|
storage = models.CharField(max_length=100)
|
||||||
tree = models.CharField(max_length=100)
|
tree = models.CharField(max_length=100)
|
||||||
device_type = models.CharField(max_length=100)
|
device_type = models.CharField(max_length=100)
|
||||||
|
uses_twrp = models.BooleanField(null=True)
|
||||||
vendor = models.CharField(max_length=100)
|
vendor = models.CharField(max_length=100)
|
||||||
vendor_short = models.CharField(max_length=100)
|
vendor_short = models.CharField(max_length=100)
|
||||||
versions = ArrayField(models.FloatField(default=None), default=None)
|
versions = ArrayField(models.FloatField(default=None), default=None)
|
||||||
wifi = models.CharField(max_length=100)
|
wifi = models.CharField(max_length=200, null=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return 'Device: ' + self.name
|
return 'Device: ' + self.name
|
Loading…
Reference in a new issue