La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

models.py 484B

12345678910111213141516
  1. #-*- coding: utf-8 -*-
  2. from django.db import models
  3. from django.contrib.auth.models import User
  4. class Member(models.Model):
  5. user = models.OneToOneField(User)
  6. website = models.URLField(null=True, blank=True)
  7. # avatar = models.ImageField(null=True, blank=True, upload_to="avatars/")
  8. signature = models.TextField(null=True, blank=True)
  9. somedata = models.BooleanField(default=False)
  10. def __str__(self):
  11. return "Profil de {0}".format(self.user.username)