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

Fix loaddata for django-tags #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tagging/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def _save(self, **kwargs): #signal, sender, instance):
"""
Save tags back to the database
"""
tags = self._get_instance_tag_cache(kwargs['instance'])
Tag.objects.update_tags(kwargs['instance'], tags)
if not kwargs['raw']
tags = self._get_instance_tag_cache(kwargs['instance'])
Tag.objects.update_tags(kwargs['instance'], tags)

def _update(self, **kwargs): #signal, sender, instance):
"""
Expand Down