Skip to content

Commit

Permalink
vocabs.admin.py linted #36 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Jul 19, 2022
1 parent 3cb1f82 commit 9d15144
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions vocabs/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
from django.contrib import admin
from .models import *
from .models import (
SkosConcept,
SkosConceptScheme,
SkosCollection,
ConceptSchemeTitle,
ConceptSchemeDescription,
ConceptSchemeSource,
CollectionLabel,
CollectionNote,
CollectionSource,
ConceptLabel,
ConceptNote,
ConceptSource
)
from guardian.admin import GuardedModelAdmin
from reversion.admin import VersionAdmin
from mptt.admin import MPTTModelAdmin
Expand All @@ -8,18 +21,17 @@
# With object permissions support
@admin.register(SkosConcept)
class SkosConceptAdmin(MPTTModelAdmin, GuardedModelAdmin, VersionAdmin):
pass
pass


class SkosCollectionAdmin(GuardedModelAdmin, VersionAdmin):
pass
pass


class SkosConceptSchemeAdmin(GuardedModelAdmin, VersionAdmin):
pass
pass


#admin.site.register(SkosConcept, SkosConceptAdmin)
admin.site.register(SkosCollection, SkosCollectionAdmin)
admin.site.register(SkosConceptScheme, SkosConceptSchemeAdmin)
admin.site.register(ConceptSchemeTitle)
Expand All @@ -30,4 +42,4 @@ class SkosConceptSchemeAdmin(GuardedModelAdmin, VersionAdmin):
admin.site.register(CollectionSource)
admin.site.register(ConceptLabel)
admin.site.register(ConceptNote)
admin.site.register(ConceptSource)
admin.site.register(ConceptSource)

0 comments on commit 9d15144

Please sign in to comment.