Example #1
0
def update_link_person_tag_cache(sender, instance, **kwargs):
    from mysite.profile.tasks import update_person_tag_cache
    try:
        person__pk = instance.person.pk
    except Person.DoesNotExist:
        return
    update_person_tag_cache.delay(person__pk=person__pk)
    mysite.base.models.Timestamp.update_timestamp_for_string(str(Link_Person_Tag))
Example #2
0
def update_link_person_tag_cache(sender, instance, **kwargs):
    from mysite.profile.tasks import update_person_tag_cache
    try:
        person__pk = instance.person.pk
    except Person.DoesNotExist:
        return
    update_person_tag_cache.delay(person__pk=person__pk)
    mysite.base.models.Timestamp.update_timestamp_for_string(
        str(Link_Person_Tag))
Example #3
0
def update_link_person_tag_cache(sender, instance, **kwargs):
    from mysite.profile.tasks import update_person_tag_cache
    update_person_tag_cache.delay(person__pk=instance.person.pk)
    mysite.search.models.Epoch.bump_for_model(Link_Person_Tag)