summaryrefslogtreecommitdiff
path: root/app/deals/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/deals/models.py')
-rw-r--r--app/deals/models.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/deals/models.py b/app/deals/models.py
index dde4465..f3c3e12 100644
--- a/app/deals/models.py
+++ b/app/deals/models.py
@@ -32,7 +32,7 @@ class Deal(models.Model):
return "{:.0f}".format(Decimal(self.deal_price))
def amazon_link(self):
- return format_html('<a target="_blank" href="%s">%s</a>' % (self.url, self.url))
+ return format_html('<a target="_blank" href="%s">Amazon</a>' % (self.url))
admin_link.short_description = 'Link'
def search_wired(self):
@@ -44,6 +44,11 @@ class Deal(models.Model):
def get_airtable_code(self):
return format_html("<a target='_blank' href='/code/%s'>Get code</a>" % (self.pk))
admin_link.short_description = 'Link'
+
+ def search_ccc(self):
+ return format_html("<a target='_blank' href='https://camelcamelcamel.com/product/%s'>Deal?</a>" % (self.asin))
+ admin_link.short_description = 'Link'
+
"""