Skip to content

Commit

Permalink
Merge pull request #250 from iragm/label-print
Browse files Browse the repository at this point in the history
fix #249
  • Loading branch information
iragm authored Oct 22, 2024
2 parents c973d79 + e7ba68f commit bd29e4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auctions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,10 @@ def url(self):
def label_print_link(self):
return f"{self.get_absolute_url()}?printredirect={reverse('print_my_labels', kwargs={'slug': self.slug})}"

@property
def label_print_unprinted_link(self):
return f"{self.get_absolute_url()}?printredirect={reverse('print_my_unprinted_labels', kwargs={'slug': self.slug})}"

@property
def add_lot_link(self):
return f"/lots/new/?auction={self.slug}"
Expand Down
5 changes: 5 additions & 0 deletions auctions/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@
login_required(views.LotLabelView.as_view()),
name="print_my_labels",
),
path(
"auctions/<slug:slug>/print-my-unprinted-labels/",
login_required(views.UnprintedLotLabelsView.as_view()),
name="print_my_unprinted_labels",
),
path(
"auctions/<slug:slug>/print/user/<str:username>/",
login_required(views.LotLabelView.as_view()),
Expand Down

0 comments on commit bd29e4a

Please sign in to comment.