Commits

Matthew Schinckel  committed 1cb3342

Whitespace cleanup

  • Participants
  • Parent commits d0e39f8

Comments (0)

Files changed (1)

File sms/models/message.py

 if 'timezones' in settings.INSTALLED_APPS:
     from timezones.utils import adjust_datetime_to_timezone
 else:
-    def adjust_datetime_to_timezone(a,b,c):
+    def adjust_datetime_to_timezone(a, b, c):
         return a
 
 from gateway import Gateway
     def get_last_rate_for(self, recipient_number):
         m = Message.objects.filter(recipient_number=recipient_number).exclude(
             gateway_charge=None).order_by('-send_date')[0]
-        return m.gateway_charge/m.length
+        return m.gateway_charge / m.length
 
 MESSAGE_STATUSES = (
     ('Unsent', 'Unsent'),
     """
     
     content = models.TextField(help_text=_(u'The body of the message.'))
-    recipient_number = models.CharField(max_length=32, 
-        help_text=_(u'The international number of the recipient, without the leading +'))
+    recipient_number = models.CharField(max_length=32,
+        help_text=_(u'The international number of the recipient'
+                     ', without the leading +'))
     
     sender = models.ForeignKey('auth.User', related_name='sent_sms_messages')
     send_date = models.DateTimeField(null=True, blank=True, editable=False)
     delivery_date = models.DateTimeField(null=True, blank=True, editable=False)
-    uuid = uuidfield.fields.UUIDField(auto=True, help_text=_(u'Used for associating replies.'))
+    uuid = uuidfield.fields.UUIDField(auto=True, 
+        help_text=_(u'Used for associating replies.'))
     
     status = models.CharField(max_length=16, choices=MESSAGE_STATUSES,
         default="Unsent",
         # TODO: Get this from UserProfile?
         if getattr(self.billee, 'timezone', None):
             return adjust_datetime_to_timezone(
-                self.send_date, 
-                settings.TIME_ZONE, 
+                self.send_date,
+                settings.TIME_ZONE,
                 self.billee.timezone
             )
         return self.send_date