Skip to content

492/antiquarian bibliographic work - #505

Merged
tcouch merged 15 commits into
productionfrom
492/antiquarian-bibliographic-work
Aug 4, 2026
Merged

492/antiquarian bibliographic work#505
tcouch merged 15 commits into
productionfrom
492/antiquarian-bibliographic-work

Conversation

@tcouch

@tcouch tcouch commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

closes #492

  • Updates the Work model with a bibliographic boolean flag.
  • As per unknown works, an Antiquarian on save signal triggers a check to see if it has a bibliographic work and creates one if not
  • Also checks for duplicate biographical works and combines them into one if so (shouldn't happen anyway)
  • Fixes bug spotted in unknown work's remove duplicates method which would have stolen links from other, non-unknown works
  • Incorporates bibliographic work into ordering logic so it is always the second to last work before unknown
  • Updates/fixes the detail template so it does not appear reorderable
  • Migration includes a step to add an empty biographical work to all existing Antiquarians

@tcouch
tcouch requested a review from tim-band June 25, 2026 21:17
@tcouch
tcouch changed the base branch from development to production July 21, 2026 15:23
@tcouch
tcouch force-pushed the 492/antiquarian-bibliographic-work branch from d775aaf to eb0f74f Compare July 22, 2026 19:11
name='bibliographic',
field=models.BooleanField(default=False),
),
migrations.RunPython(add_bibliographic_works, reverse_code=migrations.RunPython.noop),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tim-band tim-band left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah go on then.


collate_unknown(w)

self.assertEqual(w.book_set.filter(unknown=True).count(), 1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really not super clear about what this is testing. Are we saying that additional_unknown has gone missing? We could test for that explicitly... anyway it feels like we need a comment explaining what these assertions are actually asserting.

</i></button>

{% if can_edit and has_object_lock %}
{% with tlinks=object|testimonium_links_for_work:work %}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@tcouch
tcouch merged commit 0f8ad0c into production Aug 4, 2026
@tcouch
tcouch deleted the 492/antiquarian-bibliographic-work branch August 4, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Biography/About the Antiquarian [work]

2 participants