Commit 4d6c7ca533a33bbff750163878f9f18b0c9896ee
1 parent
89ceed5d
Exists in
master
and in
5 other branches
Included link image properly [Issue:#119]
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
links/models.py
1 | 1 | from django.db import models |
2 | 2 | from courses.models import Material |
3 | 3 | from autoslug.fields import AutoSlugField |
4 | +from django.contrib.staticfiles.templatetags.staticfiles import static | |
4 | 5 | # Create your models here. |
5 | 6 | class Link(Material): |
6 | 7 | link_url = models.URLField() |
7 | 8 | link_description = models.CharField(max_length=200) |
9 | + image = models.ImageField(upload_to = 'links/',blank = True) | |
8 | 10 | class Meta: |
9 | 11 | verbose_name = 'Link' |
10 | 12 | verbose_name_plural = "Links" | ... | ... |