network_inventory/inventory/models/os.py
Andreas Zweili dcc3e39914 restructure the project
Make the file tree a bit flatter in order to make the project less confusing
2020-01-07 18:10:57 +01:00

15 lines
406 B
Python

from django.db import models
from .software import SoftwareArchitecture
class OperatingSystem(models.Model):
name = models.CharField(max_length=50)
architecture = models.ForeignKey(SoftwareArchitecture, models.SET_NULL,
null=True, blank=True)
def __str__(self):
return self.name
class Meta:
verbose_name_plural = "Operating Systems"