Remove references to legacy is_blue attributes

Provide simple EVE model creation forms with ID, populate the rest from providers
Correct handling of non-main characters in signals
This commit is contained in:
Adarnof
2017-03-25 17:59:38 -04:00
parent 54262a850d
commit 64e7c6093e
6 changed files with 98 additions and 38 deletions

View File

@@ -113,5 +113,7 @@ def assign_state_on_reactivate(sender, instance, *args, **kwargs):
@receiver(post_save, sender=EveCharacter)
def check_state_on_character_update(sender, instance, *args, **kwargs):
# if this is a main character updating, check that user's state
if instance.userprofile:
try:
instance.userprofile.assign_state()
except UserProfile.DoesNotExist:
pass