Get basic, admin-editable POI working
This commit is contained in:
@ -1016,6 +1016,12 @@ class CaseStudy(models.Model):
|
||||
|
||||
|
||||
class PointOfInterest(models.Model):
|
||||
class Meta:
|
||||
verbose_name_plural = 'points of interest'
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
author = models.ForeignKey(
|
||||
User,
|
||||
models.SET_NULL,
|
||||
@ -1026,7 +1032,7 @@ class PointOfInterest(models.Model):
|
||||
|
||||
date_created = models.DateTimeField(auto_now_add=True, null=False)
|
||||
|
||||
slug = AutoSlugField(populate_from=['entry_name'], editable=False)
|
||||
slug = AutoSlugField(populate_from=['title'], editable=False)
|
||||
|
||||
approved = models.BooleanField(default=False)
|
||||
|
||||
|
Reference in New Issue
Block a user