Skip to content

Commit

Permalink
Add org backend better choices display
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Apr 5, 2018
1 parent 705c48e commit 694b1f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dash/orgs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,8 @@ class OrgBackend(SmartModel):
api_token = models.CharField(max_length=128,
help_text=_("The API token for this backend"))

def __str__(self):
return self.slug

class Meta:
unique_together = ('org', 'slug')

0 comments on commit 694b1f7

Please sign in to comment.