summaryrefslogtreecommitdiff
path: root/django/db/models/fields
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-12-16 04:54:29 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-12-16 04:54:29 +0000
commit0a0aba5f5eb200f8a9ccf28c62a3db852234130f (patch)
treead203eec11993da4a89d82dd69c8f17427865630 /django/db/models/fields
parentaca5a5258c3076f5a569cdad89ad8f38ad546aa0 (diff)
[1.0.X] Fixed #9786 -- Fixed inequality checking for django.db.models.fields.file.FieldFile class.
Backport of r9647 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/fields')
-rw-r--r--django/db/models/fields/files.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py
index fc845c5ba1..40b4e98026 100644
--- a/django/db/models/fields/files.py
+++ b/django/db/models/fields/files.py
@@ -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.