django-phone-field
django-phone-field copied to clipboard
When using dumpscript from django-extensions, PhoneField's are output using their repr.
For example, if I have an app foo
, that has a model Contact
that contains a field phone
of type PhoneField
(along with some other fields), then the output of dumpscript might contain:
foo_contact_1.zip_code = ''
foo_contact_1.phone = <phone_field.phone_number.PhoneNumber object at 0x000001BE2EACBF90>
foo_contact_1.email = '[email protected]'
The intention, of course, would be that the .phone
attribute is set to a value (presumably a string) that can then be saved to the database.