2.1.1 import country flags
This commit is contained in:
@@ -146,6 +146,13 @@ def get_image_thumb(self, obj):
|
||||
except:
|
||||
image_url = None
|
||||
|
||||
if not image_url:
|
||||
try:
|
||||
if obj.flag:
|
||||
image_url = obj.flag.url
|
||||
except:
|
||||
image_url = None
|
||||
|
||||
if not image_url:
|
||||
try:
|
||||
if obj.images_gallery:
|
||||
|
||||
Reference in New Issue
Block a user