import factory
import factory.fuzzy
from . import models

from taravel.orders.factories import OrderFactory


class GuestFactory(factory.django.DjangoModelFactory):
    order = factory.SubFactory(OrderFactory)
    first_name = factory.Sequence(lambda n: 'first_name-%04d' % n)
    second_name = factory.Sequence(lambda n: 'first_name-%04d' % n)
    government_id = factory.fuzzy.FuzzyInteger(low=100, high=200)
    value = factory.LazyAttribute(lambda x: x.order.trip.base_price)

    class Meta:
        model = models.Guest

@@ -407,77 +407,8 @@
 200)
-%0A    value = factory.LazyAttribute(lambda x: x.order.trip.base_price)
 %0A%0A  

Drop value from GuestFactory