mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
ruff rule DJ
Co-authored-by: Bartuccio Antoine <klmp200@users.noreply.github.com>
This commit is contained in:
@ -149,10 +149,10 @@ class ShoppingListItem(models.Model):
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return "%s - %s" % (self.name, self.shopping_lists.first())
|
||||
|
||||
def can_be_viewed_by(self, user):
|
||||
return user.is_in_group(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)
|
||||
return f"{self.name} - {self.shopping_lists.first()}"
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse("stock:shoppinglist_list")
|
||||
|
||||
def can_be_viewed_by(self, user):
|
||||
return user.is_in_group(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)
|
||||
|
Reference in New Issue
Block a user