A great way to assert model fields. New Version.
This commit is contained in:
parent
bb3137f881
commit
c574a66fbe
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Reference in a new issue