From fad0e8c00f09e34e090042dd0599596f889a6d8d Mon Sep 17 00:00:00 2001 From: koksnuss Date: Tue, 19 May 2020 13:59:58 +0200 Subject: [PATCH] add exception for two coins --- coinmanager/coinc/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coinmanager/coinc/views.py b/coinmanager/coinc/views.py index c7049ee..7322f06 100644 --- a/coinmanager/coinc/views.py +++ b/coinmanager/coinc/views.py @@ -151,6 +151,11 @@ def show_coin(country, year, stamp, value): return { 'value': value } + except Coin.MultipleObjectsReturned: + return { + 'value': value, + 'marker': coin + } td_class = '' if not coin.exists: