from datetime import datetime

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


class Report(models.Model):
    addressed_to = models.TextField()
    reported_from = models.ForeignKey('members.User')
    content = models.TextField()
    created_at = models.DateField(_("Date"), default=datetime.now())
    copies = models.ManyToManyField('protocols.Topic')
    signed_from = models.CharField(max_length=64)

    def __unicode__(self):
        return self.addressed_to

    def get_copies(self):
        return "\n".join([c.name for c in self.copies.all()])

from datetime import datetime
from django.db import models


class Report(models.Model):
    addressed_to = models.TextField()
    reported_from = models.ForeignKey('members.User')
    content = models.TextField()
    created_at = models.DateField(default=datetime.now)
    copies = models.ManyToManyField('protocols.Topic')
    signed_from = models.CharField(max_length=64)

    def __unicode__(self):
        return self.addressed_to

    def get_copies(self):
        return "\n".join([c.name for c in self.copies.all()])

Add new initial migration for reports
Add new initial migration for reports
