X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e24e657ebf536f55c1bde66bd41563fae30a98b0..dce88babe4ba454ab67da205cacc5441c4953809:/src/funding/models.py?ds=sidebyside diff --git a/src/funding/models.py b/src/funding/models.py index f44e37795..23afa3c04 100644 --- a/src/funding/models.py +++ b/src/funding/models.py @@ -1,5 +1,5 @@ -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from datetime import date, datetime from urllib.parse import urlencode @@ -262,7 +262,7 @@ class Funding(club.payu.models.Order): """ offer = models.ForeignKey(Offer, models.PROTECT, verbose_name='zbiórka') - customer_ip = models.GenericIPAddressField('adres IP', null=True) + customer_ip = models.GenericIPAddressField('adres IP', null=True, blank=True) name = models.CharField('nazwa', max_length=127, blank=True) email = models.EmailField('e-mail', blank=True, db_index=True) @@ -271,7 +271,7 @@ class Funding(club.payu.models.Order): perks = models.ManyToManyField(Perk, verbose_name='prezenty', blank=True) language_code = models.CharField(max_length=2, null=True, blank=True) notifications = models.BooleanField('powiadomienia', default=True, db_index=True) - notify_key = models.CharField(max_length=32) + notify_key = models.CharField(max_length=32, blank=True) class Meta: verbose_name = 'wpłata'