mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
change get_model() to apps.get_model()
This commit is contained in:
parent
26f3a22afb
commit
6412393ca9
1 changed files with 2 additions and 2 deletions
4
vendor/zebra/views.py
vendored
4
vendor/zebra/views.py
vendored
|
@ -1,6 +1,6 @@
|
|||
import json
|
||||
from django.http import HttpResponse
|
||||
from django.db.models import get_model
|
||||
from django.apps import apps
|
||||
import stripe
|
||||
from zebra.conf import options
|
||||
from zebra.signals import *
|
||||
|
@ -13,7 +13,7 @@ stripe.api_key = options.STRIPE_SECRET
|
|||
|
||||
def _try_to_get_customer_from_customer_id(stripe_customer_id):
|
||||
if options.ZEBRA_CUSTOMER_MODEL:
|
||||
m = get_model(*options.ZEBRA_CUSTOMER_MODEL.split('.'))
|
||||
m = apps.get_model(*options.ZEBRA_CUSTOMER_MODEL.split('.'))
|
||||
try:
|
||||
return m.objects.get(stripe_customer_id=stripe_customer_id)
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue