Changes between Initial Version and Version 1 of Ticket #29147, comment 9


Ignore:
Timestamp:
Mar 20, 2018, 12:17:24 PM (7 years ago)
Author:
Javier Buzzi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29147, comment 9

    initial v1  
    77
    88{{{
    9 from django.db.models import BooleanField, CharField, NumberField
    10 from django.contrib.postgres import fields
    11 
    12 CharField.to_python(None, 'hello')
     9>> from django.db.models import BooleanField, CharField, NumberField
     10>> from django.contrib.postgres import fields
     11>> CharField.to_python(None, 'hello')
    1312'hello'
    14 IntegerField.to_python(None, '123')
     13>> IntegerField.to_python(None, '123')
    1514123
    16 BooleanField.to_python(None, 'True')
     15>> BooleanField.to_python(None, 'True')
    1716True
    18 fields.HStoreField.to_python(None, '{"hello": "world"}')
     17>> fields.HStoreField.to_python(None, '{"hello": "world"}')
    1918{'hello': 'world'}
    2019}}}
     
    2322
    2423{{{
    25 fields.JSONField.to_python(None, '{"hello": "world"}')
     24>> fields.JSONField.to_python(None, '{"hello": "world"}')
    2625'{"hello": "world"}'
    2726}}}
Back to Top