Opened 10 years ago

Last modified 10 years ago

#23731 closed Bug

PointField does not allow setting blank=True and null=False — at Version 1

Reported by: George Tantiras Owned by: nobody
Component: GIS Version: 1.7
Severity: Release blocker Keywords: PointField, gis
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by George Tantiras)

The following code worked nicely in Python 3.3 / Django 1.6.x:

from django.contrib.gis.db import models

class Coordinates(models.Model):

    point = models.PointField(blank=True,null=False)
    objects = models.GeoManager()

However, in Python 3.3 / Django 1.7.1:

$ ./manage.py makemigrations
$ ./manage.py migrate
...
ValueError: String or unicode input unrecognized as WKT EWKT, and HEXEWKB.

Change History (1)

comment:1 by George Tantiras, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top