Created
May 28, 2018 23:32
-
-
Save converge/5727ca58502e82b09995c5884840900b to your computer and use it in GitHub Desktop.
This file contains 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
class AccountsStatisticsDetail(TemplateView): | |
template_name = 'grow/accountsstatistics.html' | |
def get_context_data(self, **kwargs): | |
try: | |
context = super().get_context_data(**kwargs) | |
context['username'] = self.kwargs['username'] | |
user = InstagramAccount.objects.get( | |
username=self.kwargs['username']) | |
context['account_stats'] = ( | |
AccountsStatistics.objects.filter(username=user)) | |
return context | |
except Exception: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment