Projet

Général

Profil

0001-cells-add-invalid-fields-38009.patch

Lauréline Guérin, 21 février 2020 11:14

Télécharger (27,3 ko)

Voir les différences:

Subject: [PATCH 1/6] cells: add invalid fields (#38009)

 .../calendar/migrations/0003_invalid_cell.py  |  24 ++++
 .../dashboard/migrations/0003_invalid_cell.py |  24 ++++
 .../dataviz/migrations/0011_invalid_cell.py   |  44 +++++++
 .../family/migrations/0005_invalid_cell.py    |  24 ++++
 .../fargo/migrations/0005_invalid_cell.py     |  24 ++++
 .../gallery/migrations/0004_invalid_cell.py   |  24 ++++
 combo/apps/kb/migrations/0003_invalid_cell.py |  24 ++++
 .../lingo/migrations/0038_invalid_cell.py     |  84 +++++++++++++
 .../apps/maps/migrations/0013_invalid_cell.py |  24 ++++
 .../migrations/0004_invalid_cell.py           |  24 ++++
 .../migrations/0006_invalid_cell.py           |  24 ++++
 .../search/migrations/0008_invalid_cell.py    |  24 ++++
 .../apps/wcs/migrations/0020_invalid_cell.py  | 104 ++++++++++++++++
 combo/data/migrations/0044_invalid_cell.py    | 114 ++++++++++++++++++
 combo/data/models.py                          |   6 +-
 combo/profile/migrations/0003_invalid_cell.py |  24 ++++
 16 files changed, 615 insertions(+), 1 deletion(-)
 create mode 100644 combo/apps/calendar/migrations/0003_invalid_cell.py
 create mode 100644 combo/apps/dashboard/migrations/0003_invalid_cell.py
 create mode 100644 combo/apps/dataviz/migrations/0011_invalid_cell.py
 create mode 100644 combo/apps/family/migrations/0005_invalid_cell.py
 create mode 100644 combo/apps/fargo/migrations/0005_invalid_cell.py
 create mode 100644 combo/apps/gallery/migrations/0004_invalid_cell.py
 create mode 100644 combo/apps/kb/migrations/0003_invalid_cell.py
 create mode 100644 combo/apps/lingo/migrations/0038_invalid_cell.py
 create mode 100644 combo/apps/maps/migrations/0013_invalid_cell.py
 create mode 100644 combo/apps/newsletters/migrations/0004_invalid_cell.py
 create mode 100644 combo/apps/notifications/migrations/0006_invalid_cell.py
 create mode 100644 combo/apps/search/migrations/0008_invalid_cell.py
 create mode 100644 combo/apps/wcs/migrations/0020_invalid_cell.py
 create mode 100644 combo/data/migrations/0044_invalid_cell.py
 create mode 100644 combo/profile/migrations/0003_invalid_cell.py
combo/apps/calendar/migrations/0003_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('calendar', '0002_bookingcalendar_days_displayed'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='bookingcalendar',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='bookingcalendar',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/dashboard/migrations/0003_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('dashboard', '0002_auto_20180105_0846'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='dashboardcell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='dashboardcell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/dataviz/migrations/0011_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('dataviz', '0010_auto_20190328_1111'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='chartcell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='chartcell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
        migrations.AddField(
25
            model_name='chartngcell',
26
            name='invalid_reason_code',
27
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
28
        ),
29
        migrations.AddField(
30
            model_name='chartngcell',
31
            name='invalid_since',
32
            field=models.DateTimeField(blank=True, null=True, editable=False),
33
        ),
34
        migrations.AddField(
35
            model_name='gauge',
36
            name='invalid_reason_code',
37
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
38
        ),
39
        migrations.AddField(
40
            model_name='gauge',
41
            name='invalid_since',
42
            field=models.DateTimeField(blank=True, null=True, editable=False),
43
        ),
44
    ]
combo/apps/family/migrations/0005_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('family', '0004_familyinfoscell_last_update_timestamp'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='familyinfoscell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='familyinfoscell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/fargo/migrations/0005_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('fargo', '0004_recentdocumentscell_fargo_site'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='recentdocumentscell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='recentdocumentscell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/gallery/migrations/0004_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('gallery', '0003_gallerycell_title'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='gallerycell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='gallerycell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/kb/migrations/0003_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('kb', '0002_auto_20200203_1137'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='latestpageupdatescell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='latestpageupdatescell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/lingo/migrations/0038_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('lingo', '0037_regie_transaction_options'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='activeitems',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='activeitems',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
        migrations.AddField(
25
            model_name='itemshistory',
26
            name='invalid_reason_code',
27
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
28
        ),
29
        migrations.AddField(
30
            model_name='itemshistory',
31
            name='invalid_since',
32
            field=models.DateTimeField(blank=True, null=True, editable=False),
33
        ),
34
        migrations.AddField(
35
            model_name='lingobasketcell',
36
            name='invalid_reason_code',
37
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
38
        ),
39
        migrations.AddField(
40
            model_name='lingobasketcell',
41
            name='invalid_since',
42
            field=models.DateTimeField(blank=True, null=True, editable=False),
43
        ),
44
        migrations.AddField(
45
            model_name='lingobasketlinkcell',
46
            name='invalid_reason_code',
47
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
48
        ),
49
        migrations.AddField(
50
            model_name='lingobasketlinkcell',
51
            name='invalid_since',
52
            field=models.DateTimeField(blank=True, null=True, editable=False),
53
        ),
54
        migrations.AddField(
55
            model_name='lingorecenttransactionscell',
56
            name='invalid_reason_code',
57
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
58
        ),
59
        migrations.AddField(
60
            model_name='lingorecenttransactionscell',
61
            name='invalid_since',
62
            field=models.DateTimeField(blank=True, null=True, editable=False),
63
        ),
64
        migrations.AddField(
65
            model_name='selfdeclaredinvoicepayment',
66
            name='invalid_reason_code',
67
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
68
        ),
69
        migrations.AddField(
70
            model_name='selfdeclaredinvoicepayment',
71
            name='invalid_since',
72
            field=models.DateTimeField(blank=True, null=True, editable=False),
73
        ),
74
        migrations.AddField(
75
            model_name='tipipaymentformcell',
76
            name='invalid_reason_code',
77
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
78
        ),
79
        migrations.AddField(
80
            model_name='tipipaymentformcell',
81
            name='invalid_since',
82
            field=models.DateTimeField(blank=True, null=True, editable=False),
83
        ),
84
    ]
combo/apps/maps/migrations/0013_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('maps', '0012_map_layer_slug_unicity'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='map',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='map',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/newsletters/migrations/0004_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('newsletters', '0003_newsletterscell_last_update_timestamp'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='newsletterscell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='newsletterscell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/notifications/migrations/0006_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('notifications', '0005_auto_20180324_0025'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='notificationscell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='notificationscell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/search/migrations/0008_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('search', '0007_french_fts'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='searchcell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='searchcell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
combo/apps/wcs/migrations/0020_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('wcs', '0019_wcscurrentformscell_include_drafts'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='backofficesubmissioncell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='backofficesubmissioncell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
        migrations.AddField(
25
            model_name='categoriescell',
26
            name='invalid_reason_code',
27
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
28
        ),
29
        migrations.AddField(
30
            model_name='categoriescell',
31
            name='invalid_since',
32
            field=models.DateTimeField(blank=True, null=True, editable=False),
33
        ),
34
        migrations.AddField(
35
            model_name='trackingcodeinputcell',
36
            name='invalid_reason_code',
37
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
38
        ),
39
        migrations.AddField(
40
            model_name='trackingcodeinputcell',
41
            name='invalid_since',
42
            field=models.DateTimeField(blank=True, null=True, editable=False),
43
        ),
44
        migrations.AddField(
45
            model_name='wcscareformscell',
46
            name='invalid_reason_code',
47
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
48
        ),
49
        migrations.AddField(
50
            model_name='wcscareformscell',
51
            name='invalid_since',
52
            field=models.DateTimeField(blank=True, null=True, editable=False),
53
        ),
54
        migrations.AddField(
55
            model_name='wcscategorycell',
56
            name='invalid_reason_code',
57
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
58
        ),
59
        migrations.AddField(
60
            model_name='wcscategorycell',
61
            name='invalid_since',
62
            field=models.DateTimeField(blank=True, null=True, editable=False),
63
        ),
64
        migrations.AddField(
65
            model_name='wcscurrentdraftscell',
66
            name='invalid_reason_code',
67
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
68
        ),
69
        migrations.AddField(
70
            model_name='wcscurrentdraftscell',
71
            name='invalid_since',
72
            field=models.DateTimeField(blank=True, null=True, editable=False),
73
        ),
74
        migrations.AddField(
75
            model_name='wcscurrentformscell',
76
            name='invalid_reason_code',
77
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
78
        ),
79
        migrations.AddField(
80
            model_name='wcscurrentformscell',
81
            name='invalid_since',
82
            field=models.DateTimeField(blank=True, null=True, editable=False),
83
        ),
84
        migrations.AddField(
85
            model_name='wcsformcell',
86
            name='invalid_reason_code',
87
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
88
        ),
89
        migrations.AddField(
90
            model_name='wcsformcell',
91
            name='invalid_since',
92
            field=models.DateTimeField(blank=True, null=True, editable=False),
93
        ),
94
        migrations.AddField(
95
            model_name='wcsformsofcategorycell',
96
            name='invalid_reason_code',
97
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
98
        ),
99
        migrations.AddField(
100
            model_name='wcsformsofcategorycell',
101
            name='invalid_since',
102
            field=models.DateTimeField(blank=True, null=True, editable=False),
103
        ),
104
    ]
combo/data/migrations/0044_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('data', '0043_delete_externallinksearchitem'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='configjsoncell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='configjsoncell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
        migrations.AddField(
25
            model_name='feedcell',
26
            name='invalid_reason_code',
27
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
28
        ),
29
        migrations.AddField(
30
            model_name='feedcell',
31
            name='invalid_since',
32
            field=models.DateTimeField(blank=True, null=True, editable=False),
33
        ),
34
        migrations.AddField(
35
            model_name='fortunecell',
36
            name='invalid_reason_code',
37
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
38
        ),
39
        migrations.AddField(
40
            model_name='fortunecell',
41
            name='invalid_since',
42
            field=models.DateTimeField(blank=True, null=True, editable=False),
43
        ),
44
        migrations.AddField(
45
            model_name='jsoncell',
46
            name='invalid_reason_code',
47
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
48
        ),
49
        migrations.AddField(
50
            model_name='jsoncell',
51
            name='invalid_since',
52
            field=models.DateTimeField(blank=True, null=True, editable=False),
53
        ),
54
        migrations.AddField(
55
            model_name='linkcell',
56
            name='invalid_reason_code',
57
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
58
        ),
59
        migrations.AddField(
60
            model_name='linkcell',
61
            name='invalid_since',
62
            field=models.DateTimeField(blank=True, null=True, editable=False),
63
        ),
64
        migrations.AddField(
65
            model_name='linklistcell',
66
            name='invalid_reason_code',
67
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
68
        ),
69
        migrations.AddField(
70
            model_name='linklistcell',
71
            name='invalid_since',
72
            field=models.DateTimeField(blank=True, null=True, editable=False),
73
        ),
74
        migrations.AddField(
75
            model_name='menucell',
76
            name='invalid_reason_code',
77
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
78
        ),
79
        migrations.AddField(
80
            model_name='menucell',
81
            name='invalid_since',
82
            field=models.DateTimeField(blank=True, null=True, editable=False),
83
        ),
84
        migrations.AddField(
85
            model_name='parentcontentcell',
86
            name='invalid_reason_code',
87
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
88
        ),
89
        migrations.AddField(
90
            model_name='parentcontentcell',
91
            name='invalid_since',
92
            field=models.DateTimeField(blank=True, null=True, editable=False),
93
        ),
94
        migrations.AddField(
95
            model_name='textcell',
96
            name='invalid_reason_code',
97
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
98
        ),
99
        migrations.AddField(
100
            model_name='textcell',
101
            name='invalid_since',
102
            field=models.DateTimeField(blank=True, null=True, editable=False),
103
        ),
104
        migrations.AddField(
105
            model_name='unlockmarkercell',
106
            name='invalid_reason_code',
107
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
108
        ),
109
        migrations.AddField(
110
            model_name='unlockmarkercell',
111
            name='invalid_since',
112
            field=models.DateTimeField(blank=True, null=True, editable=False),
113
        ),
114
    ]
combo/data/models.py
548 548
    groups = models.ManyToManyField(Group, verbose_name=_('Groups'), blank=True)
549 549
    last_update_timestamp = models.DateTimeField(auto_now=True)
550 550

  
551
    invalid_reason_code = models.CharField(max_length=100, blank=True, null=True, editable=False)
552
    invalid_since = models.DateTimeField(blank=True, null=True, editable=False)
553

  
551 554
    default_form_class = None
552 555
    manager_form_factory_kwargs = {}
553 556
    manager_form_template = 'combo/cell_form.html'
......
707 710
                  if x.name not in ('id', 'page', 'placeholder', 'order',
708 711
                                    'public', 'groups', 'slug',
709 712
                                    'extra_css_class', 'last_update_timestamp',
710
                                    'restricted_to_unlogged')]
713
                                    'restricted_to_unlogged',
714
                                    'invalid_reason_code', 'invalid_since')]
711 715
        if not fields:
712 716
            return None
713 717

  
combo/profile/migrations/0003_invalid_cell.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import migrations, models
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('profile', '0002_profilecell'),
11
    ]
12

  
13
    operations = [
14
        migrations.AddField(
15
            model_name='profilecell',
16
            name='invalid_reason_code',
17
            field=models.CharField(blank=True, max_length=100, null=True, editable=False),
18
        ),
19
        migrations.AddField(
20
            model_name='profilecell',
21
            name='invalid_since',
22
            field=models.DateTimeField(blank=True, null=True, editable=False),
23
        ),
24
    ]
0
-