Compare commits

..

2 Commits

Author SHA1 Message Date
Lauréline Guérin b5d21a802d
snapshots: compare inspect (#87751)
gitea/chrono/pipeline/head There was a failure building this commit Details
2024-03-08 14:14:04 +01:00
Lauréline Guérin bd06f2b82f
manager: inspect views (#87751) 2024-03-08 14:14:04 +01:00
3 changed files with 4 additions and 2 deletions

View File

@ -205,6 +205,7 @@ TimeSlot = collections.namedtuple(
)
# pylint: disable=too-many-public-methods
class Agenda(WithSnapshotMixin, WithApplicationMixin, WithInspectMixin, models.Model):
# mark temporarily restored snapshots
snapshot = models.ForeignKey(

View File

@ -130,8 +130,8 @@ class InstanceWithSnapshotHistoryCompareView(DetailView):
inspect2 = loader.render_to_string(self.inspect_template_name, get_context(instance2), self.request)
d2 = pq(str(inspect2))
panels_attrs = [tab.attrib for tab in d1('[role="tabpanel"]')]
panels1 = [tab for tab in d1('[role="tabpanel"]')]
panels2 = [tab for tab in d2('[role="tabpanel"]')]
panels1 = list(d1('[role="tabpanel"]'))
panels2 = list(d2('[role="tabpanel"]'))
# build tab list (merge version 1 and version2)
tabs1 = d1.find('[role="tab"]')

View File

@ -67,6 +67,7 @@ deps =
psycopg2-binary<2.9
git+https://git.entrouvert.org/publik-django-templatetags.git
responses
lxml
commands =
./getlasso3.sh
pylint: ./pylint.sh chrono/ tests/