conf(production):structure setting of production server and app verion api

This commit is contained in:
bobbyvish
2024-05-21 19:02:26 +05:30
parent bbc01addda
commit 971f3f6c92
6 changed files with 16 additions and 22 deletions

View File

@@ -449,10 +449,10 @@ class IAmPrincipalBiometric(BaseModel):
class AppVersion(models.Model):
DEVICE_CHOICES = [
('apple', 'apple'),
('ios', 'ios'),
('android', 'android'),
]
device_type = models.CharField(max_length=10, choices=DEVICE_CHOICES, verbose_name='Device Type (apple / android)')
device_type = models.CharField(max_length=10, choices=DEVICE_CHOICES, verbose_name='Device Type (ios / android)')
version = models.CharField(max_length=5, validators=[RegexValidator(r'^\d+\.\d+\.\d+$')], verbose_name='Version')
force_upgrade = models.BooleanField(default=False, verbose_name='Force Upgrade', help_text='Indicates whether a force upgrade is needed for this app version.')
recommend_upgrade = models.BooleanField(default=False, verbose_name='Recommend Upgrade', help_text='Indicates whether a recommend upgrade is needed for this app version.')