django-orchestra/orchestra/apps/users/roles/jabber/models.py

11 lines
282 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Jabber(models.Model):
user = models.OneToOneField('users.User', verbose_name=_("user"),
related_name='jabber')
def __unicode__(self):
return str(self.user)