Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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'