stefanfoulis/django-filer — Issue #148: validate_related_name method appears to break in FilerFileField
Author: jmacul2
Created: 2011-10-20 21:26:24+00:00
State: open

When I define something like this:

from django.db import models
from filer.fields.image import FilerImageField

class Book(models.Model):
title = models.CharField(max_length=255)
cover = FilerImageField(related_name="book_covers")
back = FilerImageField(related_name="book_backs")

as per the docs here...http://readthedocs.org/docs/django-filer/en/latest/usage.html

It breaks saying:

Caught ImproperlyConfigured while rendering: FilerImageField fields cannot have related name 'book_covers', this property already exists on AdminImageFormField

When I comment out the validate_related_name function, things work fine. Does this function need to be there anymore?