Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

Commit f6488e0

Browse files
author
4d11
committed
Added neq operator for User as well
1 parent 8c2cd19 commit f6488e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instagram/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ def __unicode__(self):
208208
def __eq__(self, other):
209209
return self.id == other.id
210210

211+
def __ne__(self, other):
212+
return not self == other
213+
211214
class Relationship(ApiModel):
212215

213216
def __init__(self, incoming_status="none", outgoing_status="none", target_user_is_private=False):

0 commit comments

Comments
 (0)