

def get_absolute_url(self):
    if self.is_published:
        if settings.PINAX_BLOG_SLUG_UNIQUE:
            name = 'pinax_blog:blog_post_slug'
            kwargs = {
                'post_slug': kwargs.slug,
            }
        else:
            name = 'pinax_blog:blog_post'
            if (settings.USE_TZ and settings.TIME_ZONE):
                published = pytz.timezone(settings.TIME_ZONE).normalize(self.published)
            else:
                published = self.published
            kwargs = {
                'year': published.strftime('%Y'),
                'month': published.strftime('%m'),
                'day': published.strftime('%d'),
                'slug': self.slug,
            }
    else:
        name = 'pinax_blog:blog_post_pk'
        kwargs = {
            'post_pk': self.pk,
        }
    return reverse(name, kwargs=kwargs)

dataset/ETHPy150Open pinax/pinax-blog/pinax/blog/models.py Post.get_absolute_url/VarMisuse@34/66 `self`->`kwargs`