Skip to content

Commit

Permalink
Merge pull request #97 from Humanitec/coregroup-str
Browse files Browse the repository at this point in the history
update CoreGroup str method and admin
  • Loading branch information
ralfzen committed May 8, 2019
2 parents 0ed04db + 16c904e commit 004b450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workflow/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OrganizationAdmin(admin.ModelAdmin):


class CoreGroupAdmin(admin.ModelAdmin):
list_display = ('name',)
list_display = ('name', 'organization', 'is_global', 'is_org_level', 'is_default', 'permissions')
display = 'Core Group'
search_fields = ('name',)

Expand Down
2 changes: 1 addition & 1 deletion workflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Meta:
ordering = ('name',)

def __str__(self):
return self.name
return f'{self.name} <{self.organization}>'

def save(self, *args, **kwargs):
self.edit_date = timezone.now()
Expand Down

0 comments on commit 004b450

Please sign in to comment.