django-phone-field icon indicating copy to clipboard operation
django-phone-field copied to clipboard

When using dumpscript from django-extensions, PhoneField's are output using their repr.

Open ericvsmith opened this issue 1 year ago • 1 comments

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.

ericvsmith avatar Dec 05 '23 01:12 ericvsmith