#!/usr/bin/env python

from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _

from panda.models.base_upload import BaseUpload

class RelatedUpload(BaseUpload):
    """
    A file related to a dataset file uploaded to PANDA.
    """
    from panda.models.dataset import Dataset

    dataset = models.ForeignKey(Dataset, related_name='related_uploads',
        help_text=_('The dataset this upload is associated with.'),
        verbose_name=_('dataset'))

    file_root = settings.MEDIA_ROOT

    class Meta:
        app_label = 'panda'
        ordering = ['creation_date']
        verbose_name = _('RelatedUpload')
        verbose_name_plural = _('RelatedUploads')

#!/usr/bin/env python

from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _

from panda.models.base_upload import BaseUpload

class RelatedUpload(BaseUpload):
    """
    A file related to a dataset file uploaded to PANDA.
    """
    from panda.models.dataset import Dataset

    dataset = models.ForeignKey(Dataset, related_name='related_uploads',
        help_text=_('The dataset this upload is associated with.'),
        verbose_name=_('dataset'))

    file_root = settings.MEDIA_ROOT

    class Meta:
        app_label = 'panda'
        ordering = ['creation_date']
        verbose_name = _('RelatedUpload')
        verbose_name_plural = _('RelatedUploads')

#!/usr/bin/env python A file related to a dataset file uploaded to PANDA.