mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-05 23:51:03 +02:00
15 lines
406 B
Python
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"
|