mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
291 B
9 lines
291 B
from django.conf import settings
|
|
|
|
from roles.models import Role
|
|
|
|
|
|
def create_default_roles():
|
|
Role.objects.get_or_create(name=settings.ROLE_PROJECT_ADMIN)
|
|
Role.objects.get_or_create(name=settings.ROLE_ANNOTATOR)
|
|
Role.objects.get_or_create(name=settings.ROLE_ANNOTATION_APPROVER)
|