from django.db import models
from accounts.models import Profile
# Create your models here.

class ContactMessage(models.Model):
	sender = models.ForeignKey(Profile, on_delete=models.DO_NOTHING)
	subject = models.CharField(max_length=200)
	email = models.EmailField()
	body = models.TextField()

	def __str__(self):
		return 'From: '+self.sender.user.username+' Title: '+self.subject
2f427aa8740845d173872f21f9d9a36f9b03220f
<mask token>


class ContactMessage(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class ContactMessage(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return 'From: ' + self.sender.user.username + ' Title: ' + self.subject

<mask token>


class ContactMessage(models.Model):
    sender = models.ForeignKey(Profile, on_delete=models.DO_NOTHING)
    subject = models.CharField(max_length=200)
    email = models.EmailField()
    body = models.TextField()

    def __str__(self):
        return 'From: ' + self.sender.user.username + ' Title: ' + self.subject

from django.db import models
from accounts.models import Profile


class ContactMessage(models.Model):
    sender = models.ForeignKey(Profile, on_delete=models.DO_NOTHING)
    subject = models.CharField(max_length=200)
    email = models.EmailField()
    body = models.TextField()

    def __str__(self):
        return 'From: ' + self.sender.user.username + ' Title: ' + self.subject

from django.db import models
from accounts.models import Profile
# Create your models here.

class ContactMessage(models.Model):
	sender = models.ForeignKey(Profile, on_delete=models.DO_NOTHING)
	subject = models.CharField(max_length=200)
	email = models.EmailField()
	body = models.TextField()

	def __str__(self):
		return 'From: '+self.sender.user.username+' Title: '+self.subject