translate stage name in document summary
[redakcja.git] / apps / attachments / models.py
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 _
5
6
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')
10
11     class Meta:
12         ordering = ('key',)
13         verbose_name, verbose_name_plural = _('attachment'), _('attachments')
14
15     def __unicode__(self):
16         return self.key