Commit 3385ce8d45681eddc234fbb4aa5fa289057ad167
1 parent
a086d70f
Exists in
master
and in
5 other branches
Updating links model to solve heritage problems [Issue: 119]
Showing
1 changed file
with
3 additions
and
5 deletions
Show diff stats
links/models.py
1 | - | ||
2 | from django.db import models | 1 | from django.db import models |
3 | from courses.models import Material | 2 | from courses.models import Material |
4 | from autoslug.fields import AutoSlugField | 3 | from autoslug.fields import AutoSlugField |
5 | # Create your models here. | 4 | # Create your models here. |
6 | -class Link(models.Model): | ||
7 | - name = models.CharField(max_length=100) | ||
8 | - link = models.URLField() | ||
9 | - description = models.CharField(max_length=200) | 5 | +class Link(Material): |
6 | + link_url = models.URLField() | ||
7 | + link_description = models.CharField(max_length=200) | ||
10 | class Meta: | 8 | class Meta: |
11 | verbose_name = 'Link' | 9 | verbose_name = 'Link' |
12 | verbose_name_plural = "Links" | 10 | verbose_name_plural = "Links" |