There is another possibility mentioned here: Django 4.2, is a 2nd autofield-like field on a model possible? - #4 by jaddison