Disable models that are not needed in admin currently

This commit is contained in:
PCoder 2021-11-28 22:31:58 +05:30
parent 50c77be640
commit a8e2ee2c94

View file

@ -354,45 +354,45 @@ class RangeCountryAdmin(admin.ModelAdmin):
admin.site.register(Person, PersonAdmin)
admin.site.register(Resource, ResourceAdmin)
admin.site.register(MountainRange, RangeAdmin)
admin.site.register(Method)
admin.site.register(Scale)
admin.site.register(Taxon)
admin.site.register(Field, FieldAdmin)
# admin.site.register(Method)
# admin.site.register(Scale)
# admin.site.register(Taxon)
# admin.site.register(Field, FieldAdmin)
# LU models
admin.site.register(Country, CountriesAdmin)
admin.site.register(GMBA_SpeciesGroup, GMBA_SpeciesGroupAdmin)
admin.site.register(Language, LanguageAdmin)
admin.site.register(PeopleStatus, PeopleStatusAdmin)
admin.site.register(RangeType, RangeTypeAdmin)
admin.site.register(RedListCategory, RedListCategoryAdmin)
admin.site.register(Source, SourceAdmin)
admin.site.register(TaxonStatus, TaxonStatusAdmin)
admin.site.register(TaxonUnit, TaxonUnitAdmin)
admin.site.register(TrendsQuality, TrendsQualityAdmin)
admin.site.register(TrendsQuantity, TrendsQuantityAdmin)
# admin.site.register(Country, CountriesAdmin)
# admin.site.register(GMBA_SpeciesGroup, GMBA_SpeciesGroupAdmin)
# admin.site.register(Language, LanguageAdmin)
# admin.site.register(PeopleStatus, PeopleStatusAdmin)
# admin.site.register(RangeType, RangeTypeAdmin)
# admin.site.register(RedListCategory, RedListCategoryAdmin)
# admin.site.register(Source, SourceAdmin)
# admin.site.register(TaxonStatus, TaxonStatusAdmin)
# admin.site.register(TaxonUnit, TaxonUnitAdmin)
# admin.site.register(TrendsQuality, TrendsQualityAdmin)
# admin.site.register(TrendsQuantity, TrendsQuantityAdmin)
# Others
admin.site.register(Repository, RepositoryAdmin)
admin.site.register(GMBA_function, GMBAFunctionAdmin)
# admin.site.register(Repository, RepositoryAdmin)
# admin.site.register(GMBA_function, GMBAFunctionAdmin)
admin.site.register(Organisation, OrganizationAdmin)
admin.site.register(RangeOnlineInfo, RangeOnlineInfoAdmin)
# admin.site.register(RangeOnlineInfo, RangeOnlineInfoAdmin)
admin.site.register(RangeNameTranslation, RangeNameTranslationAdmin)
admin.site.register(AddElevation)
admin.site.register(GMBA_V2_Centroid)
admin.site.register(ImportGeom210915)
admin.site.register(Peak, PeaksAdmin)
admin.site.register(Search, SearchAdmin)
admin.site.register(TaxaPeople)
# admin.site.register(RangesPeople)
# admin.site.register(ResourcesPeople)
admin.site.register(ScalesPeople)
admin.site.register(Species, SpeciesAdmin)
admin.site.register(PeopleFunction)
admin.site.register(SpeciesRange, SpeciesRangeAdmin)
admin.site.register(RangesPeople, PeopleRangeAdmin)
admin.site.register(TaxonRange, TaxonRangeAdmin)
admin.site.register(PeopleResource, PeopleResourceAdmin)
admin.site.register(RangeCountry, RangeCountryAdmin)
# admin.site.register(RangeNameTranslation, RangeNameTranslationAdmin)
# admin.site.register(AddElevation)
# admin.site.register(GMBA_V2_Centroid)
# admin.site.register(ImportGeom210915)
# admin.site.register(Peak, PeaksAdmin)
# admin.site.register(Search, SearchAdmin)
# admin.site.register(TaxaPeople)
# # admin.site.register(RangesPeople)
# # admin.site.register(ResourcesPeople)
# admin.site.register(ScalesPeople)
# admin.site.register(Species, SpeciesAdmin)
# admin.site.register(PeopleFunction)
# admin.site.register(SpeciesRange, SpeciesRangeAdmin)
# admin.site.register(RangesPeople, PeopleRangeAdmin)
# admin.site.register(TaxonRange, TaxonRangeAdmin)
# admin.site.register(PeopleResource, PeopleResourceAdmin)
# admin.site.register(RangeCountry, RangeCountryAdmin)