mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-04 06:06:19 +01:00
Added easy to read strings to the models
This commit is contained in:
@@ -13,3 +13,6 @@ class AuthServicesInfo(models.Model):
|
||||
main_char_id = models.CharField(max_length=64, default="")
|
||||
|
||||
user = models.ForeignKey(User)
|
||||
|
||||
def __str__(self):
|
||||
return self.user.username
|
||||
@@ -13,8 +13,14 @@ class EveCharacter(models.Model):
|
||||
api_id = models.CharField(max_length=254)
|
||||
user = models.ForeignKey(User)
|
||||
|
||||
def __str__(self):
|
||||
return self.character_name
|
||||
|
||||
|
||||
class EveApiKeyPair(models.Model):
|
||||
api_id = models.CharField(max_length=254)
|
||||
api_key = models.CharField(max_length=254)
|
||||
user = models.ForeignKey(User)
|
||||
|
||||
def __str__(self):
|
||||
return self.user.username
|
||||
Reference in New Issue
Block a user