title: django post_save call from within sending Model?
body: <p>I have a pretty simple model that works:</p>
  
  <pre><code>class Badge(models.Model):
  
      name = models.CharField(max_length=16, help_text="Name for Badge")
      category = models.ForeignKey(BadgeCategory, help_text="Category for badge")
      description = models.CharField(max_length=32, help_text="A brief description")
      file = models.ImageField(upload_to=format_badge_name)
  
      signals.post_save.connect(create_badge, sender=Badge)
  </code></pre>
  
  <p>I know my create_badge function in signals.py works. If I send it without a value for sender, it says the sender is a LogEntry object. I want/need to reference some of the instance information in the post_save script like below:</p>
  
  <pre><code>def create_badge(sender, instance, created, **kwargs):
  
      from userinfuser.ui_api import UserInfuser
      from django.conf import settings
  
      if created:
          api_key = settings.API_KEY
          api_email = settings.API_EMAIL
  
          ui = UserInfuser(api_email, api_key)
          ui.create_badge(instance.category.name, instance.name, instance.description, instance.file.url)
  </code></pre>
  
  <p>Where can I call my post_save call so it's aware of Badge (I'm assuming this is the fix?</p>
  
  <p>Thanks.</p>