1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3 from django.db import models
4 from django.utils.translation import ugettext_lazy as _
7 class Attachment(models.Model):
8 key = models.CharField(_('key'), help_text=_('A unique name for this attachment'), primary_key=True, max_length=255)
9 attachment = models.FileField(upload_to='attachment')
13 verbose_name, verbose_name_plural = _('attachment'), _('attachments')
15 def __unicode__(self):