Changes between Initial Version and Version 1 of Ticket #10114
- 01/23/09 19:01:40 (8 years ago)
initial v1 1 1 I have a model in which several fields are specified as follows: 2 2 3 3 4 lat_dec = models.FloatField(blank=True, null=True) 4 5 lon_dec = models.FloatField(blank=True, null=True) 5 6 lat_dms = models.CharField(max_length=9, blank=True, null=True) 6 7 lon_dms = models.CharField(max_length=10, blank=True, null=True) 8 7 9 8 10 In case of the CharFields, spaces are inserted into the database (PostgreSQL) when in the admin form the entry-fields are left blank. I found that out because I made some trigger procedures which update lat_dec and lon_dec when lat_dms and lon_dms (see model) are specified and vice versa. Now I made a workaround by adjusting the trigger procedure so it sets the fields to NULL when containing only spaces.