make the connectors form be able to display all types for connectors
This commit is contained in:
@ -16,7 +16,7 @@ from .models import (BookmarkletImport, Comment, CookLog, Food, ImportLog, Ingre
|
||||
ShoppingList, ShoppingListEntry, ShoppingListRecipe, Space, Step, Storage,
|
||||
Supermarket, SupermarketCategory, SupermarketCategoryRelation, Sync, SyncLog,
|
||||
TelegramBot, Unit, UnitConversion, UserFile, UserPreference, UserSpace,
|
||||
ViewLog, HomeAssistantConfig)
|
||||
ViewLog, HomeAssistantConfig, ExampleConfig)
|
||||
|
||||
|
||||
class CustomUserAdmin(UserAdmin):
|
||||
@ -103,6 +103,14 @@ class HomeAssistantConfigAdmin(admin.ModelAdmin):
|
||||
admin.site.register(HomeAssistantConfig, HomeAssistantConfigAdmin)
|
||||
|
||||
|
||||
class ExampleConfigAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'name', 'enabled', 'feed_url')
|
||||
search_fields = ('name',)
|
||||
|
||||
|
||||
admin.site.register(ExampleConfig, ExampleConfigAdmin)
|
||||
|
||||
|
||||
class SyncAdmin(admin.ModelAdmin):
|
||||
list_display = ('storage', 'path', 'active', 'last_checked')
|
||||
search_fields = ('storage__name', 'path')
|
||||
|
Reference in New Issue
Block a user