fix meal api and force update api
This commit is contained in:
@@ -448,7 +448,12 @@ class IAmPrincipalBiometric(BaseModel):
|
||||
|
||||
|
||||
class AppVersion(models.Model):
|
||||
version = models.CharField(max_length=10, validators=[RegexValidator(r'^\d+\.\d+\.\d+$')])
|
||||
DEVICE_CHOICES = [
|
||||
('apple', 'apple'),
|
||||
('android', 'android'),
|
||||
]
|
||||
device_type = models.CharField(max_length=10, choices=DEVICE_CHOICES)
|
||||
version = models.CharField(max_length=10, validators=[RegexValidator(r'^\d+\.\d+$')])
|
||||
force_upgrade = models.BooleanField(default=False, help_text='Indicates whether a force upgrade is needed for this app version.')
|
||||
recommend_upgrade = models.BooleanField(default=False, help_text='Indicates whether a recommend upgrade is needed for this app version.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user