allow manual ordering of cloud provider
All checks were successful
Build and Deploy / build (push) Successful in 50s
Build and Deploy / deploy (push) Successful in 4s

This commit is contained in:
Tobias Brunner 2025-03-12 06:41:33 +01:00
parent 7bd09ec6aa
commit 3f6fc4a86e
No known key found for this signature in database
4 changed files with 37 additions and 3 deletions

View file

@ -97,9 +97,13 @@ class CloudProvider(models.Model):
null=True,
blank=True,
)
order = models.IntegerField(default=0)
is_featured = models.BooleanField(default=False)
disable_listing = models.BooleanField(default=False)
class Meta:
ordering = ["order"]
def __str__(self):
return self.name