]> git.parisson.com Git - teleforma.git/commitdiff
pick dev migration and fix
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 7 Jul 2021 16:54:15 +0000 (18:54 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 8 Jul 2021 10:11:13 +0000 (12:11 +0200)
teleforma/models/crfpa.py

index b5d2b014e08fc97dba76cb8a4481a7014cafc568..7f482a3fa9e64dd5d5a51c8770ced06f64483f63 100755 (executable)
@@ -361,6 +361,9 @@ class Corrector(models.Model):
         except:
             return ''
 
+    def get_absolute_url(self):
+        return reverse_lazy('teleforma-profile-detail', kwargs={'username': self.user.username})
+
     class Meta(MetaCore):
         db_table = app_label + '_' + 'corrector'
         verbose_name = _('Correcteur')