add exception for two coins
This commit is contained in:
parent
1fb2ef6b0c
commit
fad0e8c00f
@ -151,6 +151,11 @@ def show_coin(country, year, stamp, value):
|
|||||||
return {
|
return {
|
||||||
'value': value
|
'value': value
|
||||||
}
|
}
|
||||||
|
except Coin.MultipleObjectsReturned:
|
||||||
|
return {
|
||||||
|
'value': value,
|
||||||
|
'marker': coin
|
||||||
|
}
|
||||||
|
|
||||||
td_class = ''
|
td_class = ''
|
||||||
if not coin.exists:
|
if not coin.exists:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user