Revision 270dd48d snf-astakos-app/astakos/im/models.py

b/snf-astakos-app/astakos/im/models.py
76 76
    email_verified = models.BooleanField('Email verified?', default=False)
77 77
    
78 78
    has_credits = models.BooleanField('Has credits?', default=False)
79
    has_signed_terms = models.BooleanField('Agree with the terms?', default=False)
80
    date_signed_terms = models.DateTimeField('Signed terms date', null=True)
79 81
    
80 82
    @property
81 83
    def realname(self):
......
130 132
    def __unicode__(self):
131 133
        return self.username
132 134

  
135
class ApprovalTerms(models.Model):
136
    """
137
    Model for approval terms
138
    """
139
    
140
    date = models.DateTimeField('Issue date', db_index=True, default=datetime.now())
141
    location = models.CharField('Terms location', max_length=255)
142

  
133 143
class Invitation(models.Model):
134 144
    """
135 145
    Model for registring invitations
......
171 181
        eventType = 'create' if not user.id else 'modify'
172 182
        body = UserEvent(QUEUE_CLIENT_ID, user, eventType, {}).format()
173 183
        conn = exchange_connect(QUEUE_CONNECTION)
174
        routing_key = '%s.user' % QUEUE_CONNECTION
184
        parts = urlparse(exchange)
185
        exchange = parts.path[1:]
186
        routing_key = '%s.user' % exchange
175 187
        exchange_send(conn, routing_key, body)
176 188
        exchange_close(conn)

Also available in: Unified diff