11 lines
301 B
Python
11 lines
301 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
def create_default_document_type(sender, **kwargs):
|
|
DocumentType = sender.get_model('DocumentType')
|
|
|
|
if not DocumentType.objects.count():
|
|
DocumentType.objects.create(label=_('Default'))
|