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 | 1 | from django.db import models |
3 | 2 | from courses.models import Material |
4 | 3 | from autoslug.fields import AutoSlugField |
5 | 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 | 8 | class Meta: |
11 | 9 | verbose_name = 'Link' |
12 | 10 | verbose_name_plural = "Links" | ... | ... |