Commit f64fc7d50b1c7e5472bae1d141a2651f03de479c
1 parent
f220b7a8
Exists in
master
and in
5 other branches
Started the app Links and started to develope the model [Issue #119]
Showing
7 changed files
with
29 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,15 @@ |
1 | +from django.db import models | |
2 | +from courses.models import Material | |
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) | |
8 | + class Meta: | |
9 | + verbose_name = 'Link' | |
10 | + verbose_name_plural = "Links" | |
11 | + def __str__(self): | |
12 | + return str(self.name) | |
13 | + | |
14 | + | |
15 | + | ... | ... |