Skip to content

Commit

Permalink
Revert "fix PersonModel method used in tests"
Browse files Browse the repository at this point in the history
This reverts commit d1226e1.
  • Loading branch information
jrief committed Mar 9, 2025
1 parent 9c991d3 commit 1e08a2c
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions testapp/models/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,37 +59,6 @@ class Continent(models.IntegerChoices):
max_length=40,
db_index=True,
)
weight = models.IntegerField(
verbose_name="Weight in kg",
validators=[
MinValueValidator(42, message="You are too lightweight."),
MaxValueValidator(95, message="You are too obese."),
],
blank=True,
null=True,
)
height = models.FloatField(
verbose_name="Height in meters",
validators=[
MinValueValidator(1.45, message="You are too short."),
MaxValueValidator(1.95, message="You are too tall."),
],
blank=True,
null=True,
)
annotation = models.TextField(
verbose_name="Annotation",
blank=True,
null=True,
)

class Meta:
app_label = "testapp"
verbose_name = "Person"
verbose_name_plural = "Persons"

def __str__(self):
return self.full_name


class UserContact(models.Model):
Expand Down

0 comments on commit 1e08a2c

Please sign in to comment.