allow manual ordering of consulting partner
This commit is contained in:
parent
e82f563ca3
commit
1daa288cdd
4 changed files with 39 additions and 5 deletions
|
@ -183,12 +183,16 @@ class ConsultingPartner(models.Model):
|
|||
CloudProvider, related_name="consulting_partners", blank=True
|
||||
)
|
||||
|
||||
order = models.IntegerField(default=0)
|
||||
is_featured = models.BooleanField(default=False)
|
||||
disable_listing = models.BooleanField(default=False)
|
||||
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ["order"]
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue