Skip to main content
management commands

python manage.py fastbill --update-articles


signals

put this in your models.py

from django_fastbill.signals import customer_signal, subscription_signal, payment_signal
from django.dispatch import receiver


@receiver(customer_signal)
def customer_signal_receiver(sender, customer, event_type, raw_data, **kwargs):
print "#" * 50
print "sender", sender
print "event_type", event_type
print "customer", customer
print "data", raw_data
print "#" * 50


@receiver(subscription_signal)
def subscription_signal_receiver(sender, customer, subscription, event_type, raw_data, **kwargs):
print "#" * 50
print "sender", sender
print "event_type", event_type
print "customer", customer
print "subscription", subscription
print "data", raw_data
print "#" * 50

@receiver(payment_signal)
def payment_signal_receiver(sender, customer, subscription, invoice, event_type, raw_data, **kwargs):
print "#" * 50
print "sender", sender
print "event_type", event_type
print "customer", customer
print "subscription", subscription
print "invoice", invoice
print "data", raw_data
print "#" * 50

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-fastbill-0.2.6.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file django-fastbill-0.2.6.tar.gz.

File metadata

File hashes

Hashes for django-fastbill-0.2.6.tar.gz
Algorithm Hash digest
SHA256 8d648c2c3666c6edda6714c1e08faa6e0564fe4ca642574cb1ca0cb7f2482e75
MD5 d22beef6284a5d71ae06fd0f3c9fba09
BLAKE2b-256 f73d453b0afc1dec1611d686a986b92a612725afdfead674cb0dfecc08e40b5c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.6 This release

1 file

0.2.5

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page