some settings
This commit is contained in:
parent
836187f2aa
commit
b0a76b88b4
5 changed files with 45 additions and 5 deletions
|
@ -60,7 +60,8 @@ class Category(models.Model):
|
|||
order = models.IntegerField(default=0)
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "Categories"
|
||||
verbose_name = "Service Category"
|
||||
verbose_name_plural = "Service Categories"
|
||||
ordering = ["order", "name"]
|
||||
|
||||
def __str__(self):
|
||||
|
@ -513,6 +514,9 @@ class ProgressiveDiscountModel(models.Model):
|
|||
description = models.TextField(blank=True)
|
||||
active = models.BooleanField(default=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Discount Model"
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
@ -611,6 +615,9 @@ class VSHNAppCatPrice(models.Model):
|
|||
related_name="price_configs",
|
||||
)
|
||||
|
||||
class Meta:
|
||||
verbose_name = "AppCat Price"
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.service.name} - {self.get_variable_unit_display()} based pricing"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue