Projet

Général

Profil

0001-lingo-reorder-TIPI-PESv2-fields-35008.patch

Benjamin Dauvergne, 23 juillet 2019 12:06

Télécharger (1,43 ko)

Voir les différences:

Subject: [PATCH 1/2] lingo: reorder TIPI PESv2 fields (#35008)

 combo/apps/lingo/models.py | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
combo/apps/lingo/models.py
746 746
    def get_cell_extra_context(self, context):
747 747
        extra_context = super(TipiPaymentFormCell, self).get_cell_extra_context(context)
748 748
        form_fields = self.get_default_form_class().base_fields
749
        field_definitions = ({'protocol': 'any', 'fields': ['exer']},
750
                  {'protocol': 'pesv2', 'fields': ['idligne', 'idpce']},
751
                  {'protocol': 'rolmre', 'fields': ['rolrec', 'roldeb', 'roldet']}
749
        field_definitions = (
750
            {
751
                'protocol': 'any',
752
                'fields': ['exer']
753
            },
754
            {
755
                'protocol': 'pesv2',
756
                'fields': ['idpce', 'idligne']
757
            },
758
            {
759
                'protocol': 'rolmre',
760
                'fields': ['rolrec', 'roldeb', 'roldet']
761
            },
752 762
        )
753 763
        reference_fields = []
754 764
        for definition in field_definitions:
755
-