Commit 6ad20d2a07b1fb6f544a58bfff3ba5fcf8803777
1 parent
18aba81e
Exists in
master
and in
5 other branches
Solving some attribute problems [Issue #119]
Showing
1 changed file
with
4 additions
and
7 deletions
Show diff stats
links/models.py
1 | 1 | from django.db import models |
2 | 2 | from courses.models import Material |
3 | 3 | # Create your models here. |
4 | -class Link(Material,models.Model): | |
5 | - name = models.CharField(max_lenght = 100) | |
6 | - link = models.UrlField() | |
7 | - description = models.CharField(max_lenght = 200) | |
4 | +class Link(models.Model): | |
5 | + name = models.CharField(max_length=100) | |
6 | + link = models.URLField() | |
7 | + description = models.CharField(max_length=200) | |
8 | 8 | class Meta: |
9 | 9 | verbose_name = 'Link' |
10 | 10 | verbose_name_plural = "Links" |
11 | 11 | def __str__(self): |
12 | 12 | return str(self.name) |
13 | - | |
14 | - | |
15 | - | ... | ... |