1. Rémy HUBSCHER
  2. Zenwalk-fr

Source

Zenwalk-fr / modulo / membre / models.py

# -*- coding: utf-8 -*-

from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _

class Informations(models.Model):
    user = models.ForeignKey(User, unique=True, related_name="motivation", verbose_name=_('utilisateur'))
    message = models.TextField(_('message'))

    def __unicode__(self):
        return u'%s' % (self.user)