Show
Ignore:
Timestamp:
10/13/08 13:17:51 (3 months ago)
Author:
fredz
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libcommonDjango/django/pimentech/fields.py

    r7980 r7981  
    11# -*- coding:utf-8 -*- 
    22 
    3 from django.db import models 
     3from django.db.models import TextField 
    44from django.core import validators 
    5 from django import forms 
     5try: 
     6        from django import newforms as forms 
     7except: 
     8        from django import forms 
    69 
    710from django.utils.html import escape 
     
    1215except: 
    1316        from django.newforms.util import smart_unicode  
     17try: 
     18        from django.oldforms import LargeTextField 
     19except: 
     20        from django.forms import LargeTextField 
     21 
    1422try: 
    1523        from django.newforms import widgets 
     
    3644 
    3745 
    38 class FormRestField(forms.LargeTextField): 
     46class FormRestField(LargeTextField): 
    3947        input_type = "text" 
    4048        def __init__(self, field_name, rows=25, cols=100, is_required=False, validator_list=None, maxlength=None): 
     
    9199 
    92100 
    93 class RestField(models.TextField): 
     101class RestField(TextField): 
    94102 
    95103        def contribute_to_class(self, cls, name):