add docstrings

This commit is contained in:
2025-09-09 16:32:32 +02:00
parent aca7042c56
commit 286f1cb57b
5 changed files with 13 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ from django.core.validators import MaxValueValidator, MinLengthValidator
class Address(models.Model):
"""
Details of the physical location of a property
Model of details for a physical location of a property
"""
class Meta:
@@ -29,7 +29,7 @@ class Address(models.Model):
class Letting(models.Model):
"""
Announce for a property to rent
Model of an announce for a property to rent
"""
title = models.CharField(max_length=256)
address = models.OneToOneField(Address, on_delete=models.CASCADE)