Custom id generation on bulk_create in django
I want different models in my django project to have different prefixes (like usr_ for user, acc_ for account etc.) I then want to append a nanoid to this prefix.
I defined a basemodel which is used by all the other models and I overrode the basemodel's save method to create the id in the format I want.
But the issue is that when I use bulk_create the ids are not in the format I want. What is the easiest way that I can generate my custom ids in bulk_create that can be used by all other models.