1. Matthew Schinckel
  2. django-sms-gateway


Matthew Schinckel  committed b5b9220

use fully qualified UUIDField name

  • Participants
  • Parent commits 13f7557
  • Branches default

Comments (0)

Files changed (2)

File sms/models/gateway.py

View file
     name = models.CharField(max_length=128)
     base_url = models.URLField()
-    settings = jsonfield.JSONField(null=True, blank=True,
+    settings = jsonfield.fields.JSONField(null=True, blank=True,
         help_text=_(u'A JSON Dictionary of key-value pairs that will be '
             'used for every message. Authorisation credentials should go '
             'in here, for example.'

File sms/models/message.py

View file
 from django.contrib.contenttypes import generic
 from django.utils.translation import ugettext as _
-import uuidfield
+import uuidfield.fields
 import picklefield
 from gateway import Gateway
     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.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,