You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
486 B
Python
15 lines
486 B
Python
from django.db import models
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
# Create your models here.
|
|
class Message(models.Model):
|
|
"""Represents a message that can be sent to some members"""
|
|
from_addr = models.EmailField('email')
|
|
subject = models.CharField(_('subject'), max_length=50)
|
|
content = models.TextField(_('content'))
|
|
to_group = models.ForeignKey('members.Group', verbose_name=_('group'))
|
|
|
|
def submit(self):
|
|
print("Sending message")
|