Add: items per page option to user profiles
This commit is contained in:
parent
78d367337d
commit
e8746f9e47
1 changed files with 7 additions and 0 deletions
|
@ -16,8 +16,15 @@ class UserProfile(models.Model):
|
|||
("S", "Show"),
|
||||
]
|
||||
|
||||
ITEMS_PER_PAGE = [
|
||||
(24, "24"),
|
||||
(48, "48"),
|
||||
(72, "72"),
|
||||
]
|
||||
|
||||
user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True, unique=True)
|
||||
show_mature = models.CharField(max_length=2, choices=MATURE, default=MATURE[0][0])
|
||||
items_per_page = models.IntegerField(choices=ITEMS_PER_PAGE, default=ITEMS_PER_PAGE[0][0])
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("User Profile")
|
||||
|
|
Loading…
Reference in a new issue