Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Restore django-waffle admin
Browse files Browse the repository at this point in the history
django-waffle's admin pages were accidentally dropped in a recent change
to add a reports section to the Django admin site. This change restores
them.
  • Loading branch information
Kelly Innes committed Aug 15, 2019
1 parent e37a5f8 commit 5777e3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Removed

### Fixed
- Restore django-waffle admin pages [#732](https://github.com/open-apparel-registry/open-apparel-registry/pull/732)

### Security

Expand Down
5 changes: 5 additions & 0 deletions src/django/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from django.shortcuts import render
from django.utils.safestring import mark_safe
from simple_history.admin import SimpleHistoryAdmin
from waffle.models import Flag, Sample, Switch
from waffle.admin import FlagAdmin, SampleAdmin, SwitchAdmin

from api import models

Expand Down Expand Up @@ -115,3 +117,6 @@ class FacilityAliasAdmin(SimpleHistoryAdmin):
admin_site.register(models.FacilityClaimReviewNote,
FacilityClaimReviewNoteAdmin)
admin_site.register(models.FacilityAlias, FacilityAliasAdmin)
admin_site.register(Flag, FlagAdmin)
admin_site.register(Sample, SampleAdmin)
admin_site.register(Switch, SwitchAdmin)

0 comments on commit 5777e3e

Please sign in to comment.