Issue #180 new

Non-blank fields can be left blank

Anonymous created an issue

Piston version: 278:c4b2d21db51a Django version: 1.2.3

Using a model such as the following:

{{{ class AbstractNode(Model): name = models.CharField(max_length=255, unique=True)

class Node(AbstractNode): other_data = models.CharField(max_length=64, blank=False) }}} I issue the following command: {{{ curl -H 'Content-Type:application/json' -X POST -d '{"name": "bob"}' }}} It creates a new node, even though I haven't specified the other_data field. If I explicitly specify it as null it fails as expected, and the new node is not created.

Comments (0)

  1. Log in to comment