Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/isb-cgc/ISB-CGC-Common in…
Browse files Browse the repository at this point in the history
…to isb-cgc-test
  • Loading branch information
phyllers committed Aug 8, 2016
2 parents 890f59c + 554741a commit 92a720c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ class ServiceAccountAdmin(admin.ModelAdmin):

@admin.register(AuthorizedDataset)
class AuthorizedDatasetAdmin(admin.ModelAdmin):
pass
list_display = (
'name',
'whitelist_id',
'acl_google_group',
'public'
)

admin.site.register(NIH_User, NIH_UserAdmin)
admin.site.register(Bucket, BucketAdmin)
Expand Down
3 changes: 3 additions & 0 deletions accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class AuthorizedDataset(models.Model):
acl_google_group = models.CharField(max_length=256, null=False)
public = models.BooleanField(default=False)

def __str__(self):
return self.name


class UserAuthorizedDatasets(models.Model):
nih_user = models.ForeignKey(NIH_User, null=False)
Expand Down

0 comments on commit 92a720c

Please sign in to comment.