From a8e2ee2c941b7ed0a06c6696e1d095d31ae269d5 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 28 Nov 2021 22:31:58 +0530 Subject: [PATCH] Disable models that are not needed in admin currently --- app/admin.py | 70 ++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/app/admin.py b/app/admin.py index 7790855..a6cb13d 100644 --- a/app/admin.py +++ b/app/admin.py @@ -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)