Skip to content

Commit

Permalink
Fix migration 0023 subscriber model reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lskillen committed Mar 29, 2017
1 parent c19af62 commit caaa59c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djstripe/migrations/0023_auto_20170307_0937.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from django.db import migrations, models


DJSTRIPE_SUBSCRIBER_MODEL = getattr(settings, "DJSTRIPE_SUBSCRIBER_MODEL", settings.AUTH_USER_MODEL)


class Migration(migrations.Migration):

dependencies = [
Expand All @@ -17,7 +20,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='customer',
name='subscriber',
field=models.ForeignKey(null=True, on_delete=models.SET_NULL, related_name='djstripe_customers', to=settings.AUTH_USER_MODEL),
field=models.ForeignKey(null=True, on_delete=models.SET_NULL, related_name='djstripe_customers', to=DJSTRIPE_SUBSCRIBER_MODEL),
),
migrations.AlterUniqueTogether(
name='customer',
Expand Down

0 comments on commit caaa59c

Please sign in to comment.