Skip to content

Commit

Permalink
Fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiky30 committed May 29, 2024
1 parent 0e72a98 commit ad44ecd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file removed db.sqlite3.pre_importbkup
Binary file not shown.
5 changes: 4 additions & 1 deletion shedpi_hub_dashboard/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from typing import ClassVar

from django.contrib import admin
from django.contrib.admin.options import InlineModelAdmin

from .models import Device, DeviceModule, DeviceModuleReading

Expand Down Expand Up @@ -26,7 +29,7 @@ class DeviceModuleReadingInlineAdmin(admin.TabularInline):

@admin.register(DeviceModule)
class DeviceModuleAdmin(admin.ModelAdmin):
inlines: list = [DeviceModuleReadingInlineAdmin]
inlines: ClassVar[list[InlineModelAdmin]] = [DeviceModuleReadingInlineAdmin]


@admin.register(DeviceModuleReading)
Expand Down

0 comments on commit ad44ecd

Please sign in to comment.