16 lines
339 B
Python
16 lines
339 B
Python
|
from django.db import models
|
||
|
from django.utils.translation import ugettext_lazy as _
|
||
|
|
||
|
from .. import roles
|
||
|
|
||
|
|
||
|
class Jabber(models.Model):
|
||
|
user = models.OneToOneField('users.User', verbose_name=_("user"),
|
||
|
related_name='jabber')
|
||
|
|
||
|
def __unicode__(self):
|
||
|
return str(self.user)
|
||
|
|
||
|
|
||
|
roles.register('jabber', Jabber)
|