Use updated instead of published date

This commit is contained in:
Oliver Marks 2019-01-07 19:02:29 +00:00
parent 11d4ee4659
commit 779747b1bc
2 changed files with 4 additions and 2 deletions

View File

@ -98,7 +98,7 @@ def fetch_feeds(feeds):
"title": post.title, "title": post.title,
"original_image": image, "original_image": image,
"description": post.description, "description": post.description,
"date": post.published_parsed, "date": post.updated_parsed,
"image": image, "image": image,
} }
) )

View File

@ -88,7 +88,9 @@ class Membership(models.Model):
payment = models.DecimalField(max_digits=6, decimal_places=2, default=0.0) payment = models.DecimalField(max_digits=6, decimal_places=2, default=0.0)
payment_date = models.DateTimeField(default=None) payment_date = models.DateTimeField(default=None)
join_date = models.DateTimeField(default=timezone.now) join_date = models.DateTimeField(default=timezone.now)
has_fob = models.BooleanField(
default=False, help_text="Member has fob access"
)
# date not specific enough # date not specific enough
date = models.DateTimeField() date = models.DateTimeField()