Commits

Matthew Schinckel  committed 729f0c5

Update requirements.

  • Participants
  • Parent commits c52381c

Comments (0)

Files changed (3)

 
 Easily send SMS messages through a web gateway from django.
 
+This code is quite stable, and has been in use for about 2 years, with thousands of messages sent per week, to a variety of gateways, and a number of different countries.
+
 Installation
 -------------
 
 
     msg.send(gateway)
 
+
 Status/Reply Callback
 ----------------------
 
 
 When you send a message, you can store a ``reply_callback`` function in the object. This function will be called, with the reply object passed in as the parameter. The reply object has access to it's original message (as well as it could be matched).
 
+
+Billing
+--------
+
+Since SMSs are generally billable through web gateways, there is the requirement that a billee is provided, and there is a billed flag on each message. This allows you to bill after-the-fact. If you wanted to only allow sending of messages to people with credits remaining, then 
+
 Future
 --------
-Currently, all sending happens in-process. There is a preliminary celery task, but it has not been extensively tested as yet.
+Currently, all sending happens in-process. There is a preliminary celery task, but it has not been extensively tested as yet.
+
             "fixtures/*",
         ]
     },
+    install_requires = [
+        'django-jsonfield',
+        'django-uuidfield-2',
+        'django-picklefield',
+    ],
     classifiers = [
         'Programming Language :: Python',
         'License :: OSI Approved :: MIT License',

File sms/models/message.py

     
     @property
     def local_send_time(self):
-        if self.billee.timezone:
+        # TODO: Get this from UserProfile?
+        if getattr(self.billee, 'timezone', None):
             return adjust_datetime_to_timezone(
                 self.send_date, 
                 settings.TIME_ZONE,