1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #58 resolved

Handler chokes on models with "reseved" field names

didier deshommes
created an issue

The handler chokes on models that have either 'read', 'update', 'delete', 'create' defined as an attribute. For example, I have a model called Article which has these fields :



read = models.BooleanField() content = models.TextField() }}}

Rendering this will issue a TypeError. The solution I came up with is to filter out these attribute names. Patch attached.

Comments (2)

  1. Log in to comment