Renamed the new_id() utility to new_pk() in the Mia core application.

This commit is contained in:
2020-07-23 23:24:42 +08:00
parent aefb5cc091
commit 6e49443b88
2 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ from django.db.models import Model, Q
from django.utils.translation import pgettext, get_language
def new_id(cls):
def new_pk(cls):
"""Finds a random ID that does not conflict with the existing data records.
Args: