Using the following template tag resolved the issue:
{% url archive_month obj.year obj|date:"b" %}
On Oct 7, 9:04 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm using the generic date-based views.
>
> Here's a snippet of my "Entry" model for a blog:
>
> #models.py
> pub_d
Hi everyone,
I'm using the generic date-based views.
Here's a snippet of my "Entry" model for a blog:
#models.py
pub_date = models.DateTimeField(auto_now_add=True)
@models.permalink
def get_month_entries(self):
return ('archive_month', (), {
'year' : self.pub_date.s
2 matches
Mail list logo