Django

Code

Changeset 6651

Show
Ignore:
Timestamp:
11/05/07 07:59:42 (8 months ago)
Author:
mtredinnick
Message:

Added the small changes necessary to make creating custom model fields easier.
Also includes some tests for this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/fields/__init__.py

    r6568 r6651  
    148148        data_types = get_creation_module().DATA_TYPES 
    149149        internal_type = self.get_internal_type() 
     150        if internal_type not in data_types: 
     151            return None 
    150152        return data_types[internal_type] % self.__dict__ 
    151153 
  • django/trunk/django/db/models/__init__.py

    r5975 r6651  
    88from django.db.models.base import Model, AdminOptions 
    99from django.db.models.fields import * 
     10from django.db.models.fields.subclassing import SubfieldBase 
    1011from django.db.models.fields.related import ForeignKey, OneToOneField, ManyToManyField, ManyToOneRel, ManyToManyRel, OneToOneRel, TABULAR, STACKED 
    1112from django.db.models import signals