mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-15 15:30:16 +02:00
Added easy to read strings to the models
This commit is contained in:
parent
4e16fbbe73
commit
ac7cd5670f
@ -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
|
Loading…
x
Reference in New Issue
Block a user