Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
[#1047] Only match individuals where they are not the same as the emp…
Browse files Browse the repository at this point in the history
…loyer field
  • Loading branch information
Alison Rowland committed Apr 26, 2012
1 parent 110a5ed commit 087a0bd
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,12 +1,13 @@
from dcentity.matching.management.base.matching import MatchingCommand
from dcdata.contribution.models import LobbyistBundle
from dcentity.models import Entity
from django.db.models import F

class Command(MatchingCommand):

def __init__(self, *args, **kwargs):
super(Command, self).__init__(*args, **kwargs)
self.subject = LobbyistBundle.objects
self.subject = LobbyistBundle.objects.exclude(name=F('employer'))
self.subject_name_attr = 'name'
self.subject_id_type = 'integer'

Expand Down

0 comments on commit 087a0bd

Please sign in to comment.