Did I find the right examples for you? yes no

All Samples(131)  |  Call(86)  |  Derive(3)  |  Import(42)

src/r/e/refinery-platform-HEAD/refinery/data_set_manager/models.py   refinery-platform(Download)
from django.db.models.signals import post_save, post_init
from django.dispatch.dispatcher import receiver
from django_extensions.db.fields import UUIDField
import logging
import settings
class NodeCollection(models.Model):
    '''
    Base class for Investigation and Study
    '''
    uuid = UUIDField(unique=True, auto=True)
class Investigation(NodeCollection):
    isarchive_file = UUIDField(blank=True, null=True, auto=False)
    pre_isarchive_file = UUIDField(blank=True, null=True, auto=False)
 
    """easily retrieves the proper NodeCollection fields"""
class Assay(models.Model):
    '''
    Study Assay (ISA-Tab Spec 4.1.3.5)
    '''
    uuid = UUIDField(unique=True, auto=True)

src/a/r/archivematica-HEAD/src/dashboard/src/main/models.py   archivematica(Download)
 
# Third party dependencies, alphabetical by import source
from django_extensions.db.fields import UUIDField
 
# This project, alphabetical by import source
from contrib import utils
import main
 
class UUIDPkField(UUIDField):
class Event(models.Model):
    id = models.AutoField(primary_key=True, db_column='pk', editable=False)
    event_id = UUIDField(auto=False, null=True, unique=True, db_column='eventIdentifierUUID')
    file_uuid = models.ForeignKey('File', db_column='fileUUID', to_field='uuid', null=True, blank=True)
    event_type = models.CharField(max_length=256, db_column='eventType')

src/m/e/mediasancion-HEAD/mediasancion/core/models.py   mediasancion(Download)
from django.utils.translation import ugettext_lazy as _
 
from django_extensions.db.fields import AutoSlugField, UUIDField
 
from mediasancion.utils.models import StandardAbstractModel
 
 
class Distrito(StandardAbstractModel):
    uuid = UUIDField(version=4, unique=True, db_index=True)
class Partido(StandardAbstractModel):
    uuid = UUIDField(version=4, unique=True, db_index=True)
    nombre = models.CharField(max_length=255)
    slug = AutoSlugField(populate_from='nombre', overwrite=True)
 
class Bloque(StandardAbstractModel):
    uuid = UUIDField(version=4, unique=True, db_index=True)
    nombre = models.CharField(max_length=255)
    slug = AutoSlugField(populate_from='nombre', overwrite=True)
 
class Persona(StandardAbstractModel):
    TIPO_DOCUMENTO_CHOICES = (
        ('D', _(u"D.N.I.")), )
 
    uuid = UUIDField(version=4, unique=True, db_index=True)

src/m/e/mediasancion-HEAD/mediasancion/congreso/models.py   mediasancion(Download)
from django.utils.translation import ugettext_lazy as _
 
from django_extensions.db.fields import AutoSlugField, UUIDField
 
from mediasancion.utils.models import StandardAbstractModel
class Comision(StandardAbstractModel):
    uuid = UUIDField(version=4, unique=True, db_index=True)
    camara = models.CharField(max_length=1, choices=CAMARA_CHOICES)
    nombre = models.CharField(max_length=255)
    descripcion = models.TextField(blank=True)
class Legislador(StandardAbstractModel):
    uuid = UUIDField(version=4, unique=True, db_index=True)
    persona = models.ForeignKey('core.Persona', null=True)
    camara = models.CharField(max_length=1, choices=CAMARA_CHOICES) # '?' could mean we don't know.
    # XXX inicio, fin, partido and distrito shouldn't be null, but we have some missing data.
        ('V', _(u'vocal')), )
 
    uuid = UUIDField(version=4, unique=True, db_index=True)
    legislador = models.ForeignKey(Legislador, null=True)
    comision = models.ForeignKey(Comision)
class Reunion(StandardAbstractModel):
    uuid = UUIDField(version=4, unique=True, db_index=True)
    camara = models.CharField(max_length=1, choices=CAMARA_CHOICES)
    nro_periodo = models.IntegerField()
    nro_reunion = models.IntegerField()

src/r/e/refinery-platform-HEAD/refinery/analysis_manager/models.py   refinery-platform(Download)
from celery.result import AsyncResult
from core.models import Analysis
from django.db import models
from django_extensions.db.fields import UUIDField
import json
class AnalysisStatus( models.Model ):
    analysis = models.ForeignKey(Analysis)    
    preprocessing_taskset_id = UUIDField( blank=True, null=True, auto=False )
    execution_taskset_id = UUIDField( blank=True, null=True, auto=False )
    postprocessing_taskset_id = UUIDField( blank=True, null=True, auto=False )
    cleanup_taskset_id = UUIDField( blank=True, null=True, auto=False )

src/e/d/edx-ora2-HEAD/apps/openassessment/workflow/models.py   edx-ora2(Download)
from django.conf import settings
from django.db import models
from django_extensions.db.fields import UUIDField
from django.utils.timezone import now
from model_utils import Choices
 
    submission_uuid = models.CharField(max_length=36, db_index=True, unique=True)
    uuid = UUIDField(version=1, db_index=True, unique=True)
 
    # These values are used to find workflows for a particular item

src/a/d/ADL_LRS-HEAD/lrs/models.py   ADL_LRS(Download)
from time import time
from jsonfield import JSONField
from django_extensions.db.fields import UUIDField
from django.db import models
from django.db import transaction
    default_scopes = models.CharField(max_length=100, default="statements/write,statements/read/mine")
 
    key = UUIDField(version=1)
    secret = models.CharField(max_length=SECRET_SIZE, default=gen_pwd)
 
class Statement(models.Model):
    # If no statement_id is given, will create one automatically
    statement_id = UUIDField(version=1, db_index=True, unique=True)
    object_agent = models.ForeignKey(Agent, related_name="object_of_statement", null=True, on_delete=models.SET_NULL, db_index=True)
    object_activity = models.ForeignKey(Activity, related_name="object_of_statement", null=True, on_delete=models.SET_NULL, db_index=True)

src/n/e/News-Analyzr-HEAD/apps/base/models.py   News-Analyzr(Download)
from django.db import models
from django.contrib.auth.models import User
from django_extensions.db.fields import UUIDField, AutoSlugField
from revisions.models import VersionedModel
 
class ContentBase(models.Model):
    uuid = UUIDField(version=4, primary_key=True)

src/r/e/refinery-platform-HEAD/refinery/core/models.py   refinery-platform(Download)
from django.db.utils import IntegrityError
from django.dispatch import receiver
from django_extensions.db.fields import UUIDField
from django_auth_ldap.backend import LDAPBackend
from guardian.shortcuts import assign, get_users_with_perms, \
class UserProfile ( models.Model ):
    '''
    Extends Django user model: https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
    '''
    uuid = UUIDField( unique=True, auto=True )
    See https://docs.djangoproject.com/en/1.3/topics/db/models/#abstract-base-classes for details.
    '''
    uuid = UUIDField( unique=True, auto=True )
    name = models.CharField( max_length=250 )
    summary = models.CharField( max_length=1000, blank=True )
class WorkflowDataInputMap( models.Model ):
    #workflow_data_input_internal_id = models.IntegerField()
    workflow_data_input_name = models.CharField( max_length=200 )    
    data_uuid = UUIDField( auto=False )
    pair_id = models.IntegerField(blank=True, null=True)
class AnalysisResult (models.Model):
    analysis_uuid = UUIDField( auto=False )
    file_store_uuid = UUIDField( auto=False )
    file_name = models.TextField()
    file_type = models.TextField()

src/r/e/refinery-platform-HEAD/refinery/file_store/models.py   refinery-platform(Download)
from django.db import models
from django.db.models.signals import pre_delete
from django_extensions.db.fields import UUIDField
from django.contrib.sites.models import Site
from django.core.files.storage import FileSystemStorage
                                blank=True, max_length=1024)
    #: unique ID
    uuid = UUIDField(unique=True, auto=True)
    #: source URL or absolute file system path
    source = models.CharField(max_length=1024)

  1 | 2 | 3 | 4 | 5  Next