From: Guillaume Pellerin Date: Mon, 13 Nov 2017 14:43:50 +0000 (+0100) Subject: replace \n to spaces X-Git-Tag: 1.2~22^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c09003b730b0b528dc5723d301a5d93112ef7818;p=teleforma.git replace \n to spaces --- diff --git a/teleforma/migrations/0089_auto__add_field_period_department__del_field_course_exam_scripts__add_.py b/teleforma/migrations/0089_auto__add_field_period_department__del_field_course_exam_scripts__add_.py index 38c6e9f4..ff6988b5 100644 --- a/teleforma/migrations/0089_auto__add_field_period_department__del_field_course_exam_scripts__add_.py +++ b/teleforma/migrations/0089_auto__add_field_period_department__del_field_course_exam_scripts__add_.py @@ -8,6 +8,10 @@ from django.db import models class Migration(SchemaMigration): def forwards(self, orm): + for profile in orm.Profile.objects.all(): + profile.address.replace('\n', ' ') + profile.save() + # Adding field 'Period.department' db.add_column('teleforma_period', 'department', self.gf('telemeta.models.core.ForeignKey')(default=None, related_name='period', null=True, blank=True, to=orm['teleforma.Department']), @@ -597,4 +601,4 @@ class Migration(SchemaMigration): } } - complete_apps = ['teleforma'] \ No newline at end of file + complete_apps = ['teleforma']