jiaaro  committed 8d3cd06

Fix for issue 117 on jespern's bitbucket - added an file and moved the registration of piston's models with the admin app into it

  • Participants
  • Parent commits e85842d
  • Branches default

Comments (0)

Files changed (1)

File piston/

 from django.db.models.signals import post_save, post_delete
 from django.db import models
 from django.contrib.auth.models import User
-from django.contrib import admin
 from django.core.mail import send_mail, mail_admins
 # Piston imports
     def __unicode__(self):
         return u"Nonce %s for %s" % (self.key, self.consumer_key)
 class Consumer(models.Model):
     name = models.CharField(max_length=255)
         self.secret = secret
 class Token(models.Model):
     REQUEST = 1
             self.callback = callback
             self.callback_confirmed = True
 # Attach our signals
 post_save.connect(consumer_post_save, sender=Consumer)