##// END OF EJS Templates
If found several images with the same hash, use the equal one as duplicate not the first one with the hash
neko259 -
r1856:969bd865 default
parent child Browse files
Show More
@@ -52,8 +52,8 b' class AttachmentManager(models.Manager):'
52 equal = False
52 equal = False
53 break
53 break
54 if equal:
54 if equal:
55 attachment = existing[0]
55 attachment = existing_attachment
56 return attachment
56 return attachment
57
57
58
58
59 class Attachment(models.Model):
59 class Attachment(models.Model):
General Comments 0
You need to be logged in to leave comments. Login now