Add point of interest model
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user