This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from zbase62 import zbase62 | |
from mongoengine import * | |
from mongoengine.queryset import OperationError | |
class RandomPKDocument(Document): | |
id = StringField(unique=True, primary_key=True) | |
def get_pk_prefix(self): |