From 3385ce8d45681eddc234fbb4aa5fa289057ad167 Mon Sep 17 00:00:00 2001 From: Gustavo Bernardo Date: Tue, 18 Oct 2016 11:29:02 -0300 Subject: [PATCH] Updating links model to solve heritage problems [Issue: 119] --- links/models.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/links/models.py b/links/models.py index 8cb3bd6..4301316 100644 --- a/links/models.py +++ b/links/models.py @@ -1,12 +1,10 @@ - from django.db import models from courses.models import Material from autoslug.fields import AutoSlugField # Create your models here. -class Link(models.Model): - name = models.CharField(max_length=100) - link = models.URLField() - description = models.CharField(max_length=200) +class Link(Material): + link_url = models.URLField() + link_description = models.CharField(max_length=200) class Meta: verbose_name = 'Link' verbose_name_plural = "Links" -- libgit2 0.21.2