from django.contrib.auth.models import User from django.db import models # Create your models here. class Link(model.Model): url = models.URLField(unique=True) def __unicode__(self): return self.title class Lesezeichen(model.Model): title = models.CharField(maxlength=200) benutzer = models.ForeignKey(User) link = models.ForeignKey(Link) def __unicode__(self): return self.title