From eeedebf4d2251e6daee42a351640800640d1eb0c Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Tue, 6 Nov 2018 15:46:46 +0100
Subject: [PATCH] Beautify ProfileNonDuplicates

---
 profiles/models.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/profiles/models.py b/profiles/models.py
index 504cdf9ec..f840a6ca0 100644
--- a/profiles/models.py
+++ b/profiles/models.py
@@ -149,6 +149,15 @@ class ProfileNonDuplicates(models.Model):
     profiles = models.ManyToManyField('profiles.Profile')
     reason = models.CharField(max_length=32, choices=PROFILE_NON_DUPLICATE_REASONS)
 
+    class Meta:
+        verbose_name = 'Profile non-duplicates'
+        verbose_name_plural = 'Profile non-duplicates'
+
+    def __str__(self):
+        return '%s, %s (%i)' % (self.profiles.first().last_name,
+                                self.profiles.first().first_name,
+                                self.profiles.count())
+
     @property
     def full_name(self):
         return '%s%s' % (self.profiles.first().last_name, self.profiles.first().first_name)
-- 
GitLab