Skip to content

Commit

Permalink
add models to admin pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Nov 4, 2024
1 parent 201e1cc commit 77fc120
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions embark/dashboard/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from django.contrib import admin

from dashboard.models import Result
from dashboard.models import *

admin.register(Result)
admin.site.register(Result)
admin.site.register(Vulnerability)
admin.site.register(SoftwareInfo)
2 changes: 1 addition & 1 deletion embark/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Vulnerability(models.Model):

class SoftwareInfo(models.Model):
"""
Many-to-many object for SBOM
Many-to-many object for SBOM entries
"""
id = models.UUIDField(primary_key=True, default=uuid.uuid4)
name = models.CharField(verbose_name="software name", blank=False, editable=True, default="NA", max_length=256)
Expand Down
4 changes: 3 additions & 1 deletion embark/uploader/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from django.contrib import admin

from uploader.models import FirmwareAnalysis
from uploader.models import FirmwareAnalysis, FirmwareFile, Device

admin.site.register(FirmwareAnalysis)
admin.site.register(Device)
admin.site.register(FirmwareFile)

0 comments on commit 77fc120

Please sign in to comment.