When adding a new variant, you cannot copy from preceding issue first time

4 views
Skip to first unread message

Adam Knights

unread,
Jan 4, 2026, 1:54:29 AM (4 days ago) Jan 4
to gcd-tech
When you add a variant you only get the copy from base issue button. This can be a bit of a pain when me and John are adding 50-100 variants each week if the person adding the base skeleton misses off a load of details. What would make it slightly nicer would be if we could use the preceding base issue, particularly for editors that often hasnt changed.variant-no-button.png

I took a look and it would actually work if the button were there, i.e. I added a new variant, pressed the base issue button to get to the url (example https://www.comics.org/issue/revision/7609954/compare/2802563/), and modified the last number to the previous base issue instead.

Once the variant is approved, if you go to edit it again, the preceding issue button is now there too.

I looked at the code and my guess is with {% if issue_revision.issue.get_prev_next_issue.0 %}
the .issue isnt populated yet so it doesnt go into  get_prev_next_issue when the variant is new. 

Is this a quick fix, and if not anything you could point me to try?

Cheers
Adam

Jochen G.

unread,
Jan 5, 2026, 4:22:17 PM (3 days ago) Jan 5
to gcd-...@googlegroups.com
Am 04.01.26 um 07:54 schrieb Adam Knights:
> I looked at the code and my guess is with {% if
> issue_revision.issue.get_prev_next_issue.0 %}
> the .issue isnt populated yet so it doesnt go into  get_prev_next_issue
> when the variant is new.

The issue gets created when approved, it doesn't exist before. So for
those IssueRevisions in creation issue_revision.issue is Null.

issue_revision.issue is the Issue an IssueRevision relates to.

Might be a way to go via the variant.

Jochen


Adam Knights

unread,
Jan 5, 2026, 5:15:14 PM (3 days ago) Jan 5
to gcd-tech
That was just what i needed, thankyou!! I see we can use  issue_revision.variant_of.get_prev_next_issue  in the same sort of way we use .after for the case of a yet to be approved new base issue. I've raised a PR :).

Cheers
Adam

Jochen G.

unread,
Jan 7, 2026, 2:57:55 PM (16 hours ago) Jan 7
to gcd-...@googlegroups.com
deployed

Am 05.01.26 um 23:15 schrieb Adam Knights:
> --
> You received this message because you are subscribed to the Google
> Groups "gcd-tech" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gcd-tech+u...@googlegroups.com <mailto:gcd-
> tech+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/gcd-
> tech/c8cc0b95-b580-487f-a8c0-14c357145126n%40googlegroups.com <https://
> groups.google.com/d/msgid/gcd-tech/c8cc0b95-b580-487f-
> a8c0-14c357145126n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages