Skip to content

Commit

Permalink
Remove unecessary model manager
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed Jun 26, 2013
1 parent d52a3ec commit 610d70d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
11 changes: 0 additions & 11 deletions authorizenet/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,3 @@ def create(self, **data):
)

return obj


class CustomerPaymentProfileManager(models.Manager):

def create(self, **kwargs):
"""Create new Authorize.NET customer payment profile"""
sync = kwargs.pop('sync', True)
obj = self.model(**kwargs)
self._for_write = True
obj.save(force_insert=True, using=self.db, sync=sync)
return obj
4 changes: 1 addition & 3 deletions authorizenet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .cim import add_profile, get_profile, update_payment_profile, \
create_payment_profile, delete_profile, delete_payment_profile

from .managers import CustomerProfileManager, CustomerPaymentProfileManager
from .managers import CustomerProfileManager
from .exceptions import BillingError


Expand Down Expand Up @@ -355,5 +355,3 @@ def update(self, **data):

def __unicode__(self):
return self.payment_profile_id

objects = CustomerPaymentProfileManager()

0 comments on commit 610d70d

Please sign in to comment.