Display feature flags in the admin
@@ -110,9 +110,13 @@ class ProjectAdmin(GuardedModelAdmin):
search_fields = ('slug', 'repo')
inlines = [ProjectRelationshipInline, RedirectInline,
VersionInline, DomainInline]
+ readonly_fields = ('feature_flags',)
raw_id_fields = ('users', 'main_language_project')
actions = ['send_owner_email', 'ban_owner']
+ def feature_flags(self, obj):
+ return ', '.join([f.feature_id for f in obj.features])
+
def send_owner_email(self, request, queryset):
view = ProjectSendNotificationView.as_view(
action_name='send_owner_email'
