Did I find the right examples for you? yes no

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)

src/m/a/mayan-HEAD/apps/metadata/views.py   mayan(Download)
from .forms import (MetadataFormSet, AddMetadataForm,
    MetadataRemoveFormSet, MetadataTypeForm, MetadataSetForm)
from .models import (DocumentMetadata, MetadataType, MetadataSet,
    MetadataSetItem, DocumentTypeDefaults)
from .permissions import (PERMISSION_METADATA_DOCUMENT_EDIT,

src/m/a/mayan-HEAD/apps/metadata/admin.py   mayan(Download)
from __future__ import absolute_import
 
from django.contrib import admin
 
from .models import (MetadataType, MetadataSet, MetadataSetItem,

src/m/a/mayan-HEAD/apps/metadata/forms.py   mayan(Download)
 
from .conf.settings import AVAILABLE_MODELS, AVAILABLE_FUNCTIONS
from .models import MetadataSet, MetadataType, DocumentTypeDefaults
 
 

src/m/a/mayan-HEAD/apps/metadata/__init__.py   mayan(Download)
    setup_metadata_set_members, setup_metadata_set_delete, setup_metadata_set_create,
    setup_document_type_metadata)
from .models import MetadataType, MetadataSet
from .permissions import (PERMISSION_METADATA_DOCUMENT_EDIT,
    PERMISSION_METADATA_DOCUMENT_ADD, PERMISSION_METADATA_DOCUMENT_REMOVE,

src/m/a/mayan-HEAD/apps/metadata/cleanup.py   mayan(Download)
def cleanup():
    from .models import MetadataType, MetadataSet
 
    MetadataType.objects.all().delete()
    MetadataSet.objects.all().delete()

src/m/a/mayan-HEAD/apps/metadata/api.py   mayan(Download)
from django.shortcuts import get_object_or_404
 
from .models import DocumentMetadata, MetadataType