def __new__(mcs, name, bases, attrs):
        attrs.update(
            api_path_prefix_format=COLLECTION_PATH_FORMAT,
        )
        model = attrs.get('model', None)
        if attrs.get('name', None) is None and model is not None:
            attrs.update(
                name=model_name(model),
            )
        return super(CollectionMeta, mcs).__new__(mcs, name, bases, attrs)
Create a new Collection class.
dataset/ETHPy150Open django-ddp/django-ddp/dddp/api.py/CollectionMeta.__new__