Fixed #9786 -- Fixed inequality checking for django.db.models.fields.file.FieldFile class.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-12-16 04:52:55 +00:00
parent 4bede45816
commit b96b450981
3 changed files with 19 additions and 4 deletions

View file

@ -29,6 +29,9 @@ class FieldFile(File):
return self.name == other.name
return self.name == other
def __ne__(self, other):
return not self.__eq__(other)
# The standard File contains most of the necessary properties, but
# FieldFiles can be instantiated without a name, so that needs to
# be checked for here.