stephenmcd/mezzanine — Issue #133: Using more than 1 RichTextField breaks FileBrowseFields
Author: stepmr
Created: 2012-02-14 05:28:54+00:00
State: open

Django-1.3.1
Mezzanine-0.12.5
filebrowser_safe-0.1.3
grappelli_safe-0.1.12
Multiple platforms

from django.db import models

from django.utils.translation import ugettext, ugettext_lazy as _
from filebrowser_safe.fields import FileBrowseField
from mezzanine.core.fields import RichTextField

class DoubleDouble(models.Model):
col1 = RichTextField(_("Two Creams"))
col2 = RichTextField(_("Two Creams"))
col1_image = FileBrowseField(_('Two Sugars'), max_length=200)
col2_image = FileBrowseField(_('Two Sugars'), max_length=200)

def __unicode__(self):
return u"Double Double"

class Meta:
verbose_name = _('Double Double')
verbose_name_plural = _('Double Double')

Tried with a fresh install from PyPi too. When there are more than one RichTextField field in the same model, the FileBrowseFields stop functioning. Although they still function when used in a dynamic inline.