diff options
author | luxagraf <sng@luxagraf.net> | 2023-11-15 17:26:13 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-11-15 17:26:13 -0500 |
commit | 2d7668bc67d692523c7d0c57f44303cd613a20d4 (patch) | |
tree | af6b2c9eb143759ce901447c6bd60383f570af0c | |
parent | 5d26ed7dbba5475a93b70c450741b358153b0855 (diff) |
gtd: fixing bugs
-rw-r--r-- | app/gtd/models.py | 2 | ||||
-rw-r--r-- | app/gtd/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/gtd/models.py b/app/gtd/models.py index e021b42..f234c62 100644 --- a/app/gtd/models.py +++ b/app/gtd/models.py @@ -149,7 +149,7 @@ class WiredPost(models.Model): body = models.TextField(blank=True, null=True) url = models.CharField(max_length=512, blank=True, null=True) edit_url = models.CharField(max_length=512, blank=True, null=True) - date_last_pub = models.DateField(default=timezone.now()) + date_last_pub = models.DateField() guid = models.CharField(max_length=512, blank=True, null=True, db_index=True) author = models.CharField(max_length=255, blank=True, null=True) post_type = models.IntegerField(choices=PostType.choices, default=PostType.GUIDE) diff --git a/app/gtd/views.py b/app/gtd/views.py index 8082db3..cb769a0 100644 --- a/app/gtd/views.py +++ b/app/gtd/views.py @@ -123,7 +123,7 @@ class WiredNoteCreateView(CreateView): return reverse('gtd:wirednotes-create') else: if self.object.post: - return reverse('gtd:wiredposts-detail', kwargs={"pk": self.object.post.pk}) + return reverse('gtd:post-detail', kwargs={"pk": self.object.post.pk}) else: return reverse('gtd:wirednotes-create') |