remove orphan fields
This commit is contained in:
parent
6eaaf50ac5
commit
7b93c6970e
|
@ -15,10 +15,8 @@ class ApartmentFactory(factory.django.DjangoModelFactory):
|
|||
|
||||
class Meta:
|
||||
model = Apartament
|
||||
django_get_or_create = ('address',)
|
||||
|
||||
# Base data
|
||||
ipAddress = faker.ipv4_private(address_class='a')
|
||||
price = faker.random.randint(2, 10) * 5000
|
||||
lastPrice = price
|
||||
bail = faker.random.randint(1, 10) * 100
|
||||
|
@ -37,7 +35,6 @@ class ApartmentFactory(factory.django.DjangoModelFactory):
|
|||
floorHouse = faker.random.randint(2, 20)
|
||||
floor = faker.random.randint(1, floorHouse)
|
||||
|
||||
phoneNumberRegex = RegexValidator(regex = r"^\+?1?\d{8,15}$")
|
||||
phoneNumber = faker.phone_number()
|
||||
|
||||
timeToBus = faker.random.randint(2, 12) * 5
|
||||
|
|
Loading…
Reference in New Issue