basic import working

This commit is contained in:
vabene1111
2023-04-30 21:51:28 +02:00
parent 3ec02db2f6
commit dfde340447
6 changed files with 17001 additions and 12195 deletions

View File

@ -14,7 +14,7 @@ from .models import (Automation, Comment, CustomFilter, Food, InviteLink, Keywor
Supermarket, SupermarketCategory, Sync, SyncLog, Unit, UserFile,
get_model_name, UserSpace, Space, FoodPropertyType, UnitConversion)
from .views import api, data, delete, edit, import_export, lists, new, telegram, views
from .views.api import CustomAuthToken
from .views.api import CustomAuthToken, ImportOpenData
router = routers.DefaultRouter()
router.register(r'automation', api.AutomationViewSet)
@ -142,6 +142,7 @@ urlpatterns = [
path('api/', include((router.urls, 'api'))),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('api-token-auth/', CustomAuthToken.as_view()),
path('api-import-open-data/', ImportOpenData.as_view(), name='api_import_open_data'),
path('offline/', views.offline, name='view_offline'),