def METHOD_NAME(seq, refmodels):
    refmodels.Reference.objects.all().delete()
    project1 = factories.ProjectFactory.create()
    seqname1 = refmodels.make_sequence_name(project1)
    project2 = factories.ProjectFactory.create()
    seqname2 = refmodels.make_sequence_name(project2)
    seq.alter(seqname1, 100)
    seq.alter(seqname2, 200)
    issue = factories.IssueFactory.create(project=project1)
    assert issue.ref == 101
    issue.subject = "other"
    issue.save()
    assert issue.ref == 101
    issue.project = project2
    issue.save()
    assert issue.ref == 201