'Deduplication method for req_organisation_needs: replace
existing records rather than updating them
@param item: the S3ImportItem'

@staticmethod
def organisation_needs_deduplicate(item):

    data = item.data
    organisation_id = data.get('organisation_id')
    if organisation_id:
        from s3 import FS
        query = (FS('organisation_id') == organisation_id)
        resource = current.s3db.resource('req_organisation_needs', filter=query)
        resource.delete(cascade=True)
