diff --git a/corputils/models.py b/corputils/models.py index 9fc6c746..3a29d058 100644 --- a/corputils/models.py +++ b/corputils/models.py @@ -87,7 +87,7 @@ class CorpStats(models.Model): auth = AuthServicesInfo.objects.get_or_create(user=user)[0] if auth.main_char_id: try: - char = EveCharacter.objects.get(id=auth.main_char_id) + char = EveCharacter.objects.get(character_id=auth.main_char_id) if char.corporation_id == self.corp.corporation_id and user.has_perm('corputils.corp_apis'): return True if self.corp.alliance and char.alliance_id == self.corp.alliance.alliance_id and user.has_perm('corputils.alliance_apis'): diff --git a/corputils/templates/corputils/corpstats.html b/corputils/templates/corputils/corpstats.html index fbebcf31..45a2a63c 100644 --- a/corputils/templates/corputils/corpstats.html +++ b/corputils/templates/corputils/corpstats.html @@ -14,9 +14,9 @@ {% endif %} - {{ corpstats.corp.corporation_name }} +

{{ corpstats.corp.corporation_name }}

{% if corpstats.corp.alliance %} - {{ corpstats.corp.alliance.alliance_name }} +

{{ corpstats.corp.alliance.alliance_name }}

{% endif %}