mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-26 09:09:09 +02:00
12 lines
258 B
Python
12 lines
258 B
Python
from django.db import models
|
|
from .customer import Customer
|
|
|
|
class Location(models.Model):
|
|
name = models.CharField(max_length=50)
|
|
customer = models.ForeignKey(Customer, on_delete=models.CASCADE)
|
|
|
|
def __str__(self):
|
|
return self.name
|
|
|
|
|