mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-26 19:25:34 +02:00
14 lines
268 B
Python
14 lines
268 B
Python
from django.db import models
|
|
|
|
|
|
class Company(models.Model):
|
|
name = models.CharField(max_length=50)
|
|
description = models.TextField(blank=True)
|
|
|
|
class Meta:
|
|
abstract = True
|
|
ordering = ['name']
|
|
|
|
def __str__(self):
|
|
return self.name
|