This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_social_history(self): | |
return self.social_histories.values() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def article_social_history(request, slug, section_slug): | |
article = DDArticle.published_objects.get(primary_section__slug=section_slug, slug=slug) | |
h = article.get_social_history() | |
history = [] | |
for record in h: | |
for k, v in record.items(): | |
if hasattr(v, 'isoformat'): | |
record[k] = v.isoformat() | |
history.append(record) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block content %} | |
<div class="overview_layout"> | |
<div class="side"> | |
{% include "includes/searchbox.html" %} | |
{% include "includes/facebook_like_box.html" %} | |
{% include "includes/twitter_subscribe_right.html" %} | |
{# TODO: Handle margin issue in CSS #} | |
<div style="height: 10px; padding: 0; margin: 0; "></div> | |
{% include "includes/right_sidebar_ads.html" %} | |
{% include "articles/recommendation/related_articles.html" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global github.password |
NewerOlder