Make some little quality-of-life improvements to the Django admin for my models
This commit is contained in:
parent
63b0ec45e9
commit
75ed4503c8
3 changed files with 9 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class Profile(models.Model):
|
|||
display_name = models.CharField(max_length=100, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return '{name}@{site}'.format(name=self.username, site=self.site)
|
||||
return self.url
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue