This commit is contained in:
Eden Kirin
2024-04-10 22:04:10 +02:00
parent f06b72343b
commit 929e16e2ec
9 changed files with 500 additions and 1 deletions

View File

@ -0,0 +1,11 @@
from django.db import models
class Area(models.Model):
name = models.CharField(max_length=100)
post_office = models.ForeignKey("PostOffice", on_delete=models.CASCADE)
county = models.ForeignKey("County", on_delete=models.CASCADE)
class Meta:
db_table = "areas"
ordering = ["name"]