New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display feature flags in the admin #4108

Merged
merged 2 commits into from May 21, 2018

Conversation

Projects
None yet
3 participants
@davidfischer
Contributor

davidfischer commented May 17, 2018

This PR gives an easy way to see the feature flags that apply to a project.

screen shot 2018-05-17 at 1 29 06 pm

@davidfischer davidfischer requested a review from humitos May 17, 2018

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])

This comment has been minimized.

@stsewd

stsewd May 17, 2018

Member

Isn't nicer to use the feature_display?

def get_feature_display(self):

This comment has been minimized.

@davidfischer
@humitos

Nice!

@davidfischer davidfischer merged commit 3b05ce1 into rtfd:master May 21, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment