From c574a66fbe0d24a221980e2f93a3791c871ee41b Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Thu, 25 Aug 2011 19:35:20 -0300 Subject: [PATCH] A great way to assert model fields. New Version. --- django_pyvows/version.py | 2 +- vows/sandbox/main/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_pyvows/version.py b/django_pyvows/version.py index e13b658..d4e8dd0 100644 --- a/django_pyvows/version.py +++ b/django_pyvows/version.py @@ -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) diff --git a/vows/sandbox/main/models.py b/vows/sandbox/main/models.py index f1c183e..a7a35ba 100644 --- a/vows/sandbox/main/models.py +++ b/vows/sandbox/main/models.py @@ -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)