mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
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:
parent
4bede45816
commit
b96b450981
3 changed files with 19 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue