A great way to assert model fields. New Version.

This commit is contained in:
Rafael Caricio 2011-08-25 19:35:20 -03:00
parent bb3137f881
commit c574a66fbe
2 changed files with 2 additions and 2 deletions

View file

@ -8,4 +8,4 @@
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
__version__ = (0, 3, 3)
__version__ = (0, 3, 4)

View file

@ -11,4 +11,4 @@
from django.db import models
class StringModel(models.Model):
name = models.CharField(max_length=100)
getattr(field, attr) name = models.CharField(max_length=100)