import datetime
from django.db import models
from django.utils import timezone
from tinymce import models as tinymce_models


class Project(models.Model):
    project_title = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')
    competencies = models.CharField(max_length=200)
    technologies = models.CharField(max_length=200)
    project_description = tinymce_models.HTMLField()
    small_image = models.FileField()
    large_image = models.FileField()

    def __str__(self):
        return self.project_title

    def was_published_recently(self):
        return self.pub_date >= timezone.now() - datetime.timedelta(days=1)


class Contact(models.Model):
    email = models.CharField(max_length=200),
    message = models.TextField()

    def __str__(self):
        return self.email

668ec8a41a394cba3f1940f46e528e141444e8f8
<mask token>


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


class Contact(models.Model):
    email = models.CharField(max_length=200),
    message = models.TextField()

    def __str__(self):
        return self.email

<mask token>


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

    def __str__(self):
        return self.project_title
    <mask token>


class Contact(models.Model):
    email = models.CharField(max_length=200),
    message = models.TextField()

    def __str__(self):
        return self.email

<mask token>


class Project(models.Model):
    project_title = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')
    competencies = models.CharField(max_length=200)
    technologies = models.CharField(max_length=200)
    project_description = tinymce_models.HTMLField()
    small_image = models.FileField()
    large_image = models.FileField()

    def __str__(self):
        return self.project_title

    def was_published_recently(self):
        return self.pub_date >= timezone.now() - datetime.timedelta(days=1)


class Contact(models.Model):
    email = models.CharField(max_length=200),
    message = models.TextField()

    def __str__(self):
        return self.email

import datetime
from django.db import models
from django.utils import timezone
from tinymce import models as tinymce_models


class Project(models.Model):
    project_title = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')
    competencies = models.CharField(max_length=200)
    technologies = models.CharField(max_length=200)
    project_description = tinymce_models.HTMLField()
    small_image = models.FileField()
    large_image = models.FileField()

    def __str__(self):
        return self.project_title

    def was_published_recently(self):
        return self.pub_date >= timezone.now() - datetime.timedelta(days=1)


class Contact(models.Model):
    email = models.CharField(max_length=200),
    message = models.TextField()

    def __str__(self):
        return self.email
