You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dynamic_fixtures.py 428B

1234567891011
  1. from django_dynamic_fixture.ddf import DataFixture
  2. from django_dynamic_fixture.fixture_algorithms.sequential_fixture import \
  3. SequentialDataFixture
  4. class OscarDynamicDataFixtureClass(SequentialDataFixture):
  5. """
  6. This is need to support Oscar's PhoneNumberField: it's a custom type, so we
  7. must provide values for testing
  8. """
  9. def phonenumberfield_config(self, field, key):
  10. return '+49 351 3296645'