Commit 691fe895 authored by Jean-Baptiste's avatar Jean-Baptiste

fix: __str__fct

parent 1ea7f10b
Pipeline #1914 passed with stage
in 32 seconds
......@@ -8,6 +8,7 @@ def migrate_data(apps, schema_editor):
ChatProfile = apps.get_model('djangoldp_account', 'ChatProfile')
for profile in ChatProfile.objects.all():
profile.jabberID = profile.config.jabberID
profile.save()
class Migration(migrations.Migration):
......
......@@ -28,7 +28,7 @@ class ChatProfile(models.Model):
)
def __str__(self):
return '{} (jabberID: {})'.format(self.user.get_full_name(), self.config.jabberID)
return '{} (jabberID: {})'.format(self.user.get_full_name(), self.jabberID)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment