Add point of interest model

This commit is contained in:
2018-10-12 18:50:27 -04:00
parent 79dffadd14
commit 69e518240c
2 changed files with 56 additions and 0 deletions

View File

@ -1012,3 +1012,25 @@ class CaseStudy(models.Model):
class Meta:
verbose_name_plural = 'case studies'
class PointOfInterest(models.Model):
author = models.ForeignKey(
User,
models.SET_NULL,
blank=True,
null=True,
editable=False
)
date_created = models.DateTimeField(auto_now_add=True, null=False)
slug = AutoSlugField(populate_from=['entry_name'], editable=False)
approved = models.BooleanField(default=False)
title = models.CharField(max_length=128)
location = models.PointField()
synopsis = models.TextField()
link = models.URLField()