fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hidden infopages.
[wolnelektury.git]
/
src
/
funding
/
models.py
diff --git
a/src/funding/models.py
b/src/funding/models.py
index
23afa3c
..
12fa0ca
100644
(file)
--- a/
src/funding/models.py
+++ b/
src/funding/models.py
@@
-372,9
+372,11
@@
class PayUNotification(club.payu.models.Notification):
class Spent(models.Model):
""" Some of the remaining money spent on a book. """
class Spent(models.Model):
""" Some of the remaining money spent on a book. """
- book = models.ForeignKey(Book, models.PROTECT)
+ book = models.ForeignKey(Book, models.PROTECT, null=True, blank=True)
+ link = models.URLField(blank=True, help_text='zamiast książki, np. kolekcja')
amount = models.DecimalField('kwota', decimal_places=2, max_digits=10)
timestamp = models.DateField('kiedy')
amount = models.DecimalField('kwota', decimal_places=2, max_digits=10)
timestamp = models.DateField('kiedy')
+ annotation = models.CharField('adnotacja', max_length=255, blank=True, help_text="np. 'audiobook'")
class Meta:
verbose_name = 'pieniądze wydane na książkę'
class Meta:
verbose_name = 'pieniądze wydane na książkę'