Skip to content

Commit

Permalink
fixing a rush mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
kfricovsky@kevinmbp.local committed Jun 29, 2009
1 parent e757cb4 commit c082f3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions django_proxy/signals.py
Expand Up @@ -21,12 +21,12 @@ def proxy_save(sender, **kwargs):
#pub_date isn't required so confirm
pub_date = getattr(cls, 'pub_date', None)
if pub_date:
obj.pub_date = pub_date
obj.pub_date = getattr(instance, cls.pub_date)

#tags aren't required so confirm
tags = getattr(cls, 'tags', None)
if tags:
obj.tags = tags
obj.tags = getattr(instance, cls.tags)
obj.save()
else:
#this instance already exists let's try and grab it's Proxy instance
Expand All @@ -43,12 +43,12 @@ def proxy_save(sender, **kwargs):
#proxy pub_date isn't required so confirm
pub_date = getattr(cls, 'pub_date', None)
if pub_date:
obj.pub_date = pub_date
obj.pub_date = getattr(instance, cls.pub_date)

#proxy tag isn't require so confirm
tags = getattr(cls, 'tags', None)
if tags:
obj.tags = tags
obj.tags = getattr(instance, cls.tags)
obj.save()

def proxy_delete(sender, **kwargs):
Expand Down

0 comments on commit c082f3e

Please sign in to comment.