Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

from django.contrib.gis.db import models 

from django.conf import settings 

 

class Screencast(models.Model): 

    video = models.FileField(upload_to=settings.SCREENCASTS) 

    image = models.ImageField(upload_to=settings.SCREENCAST_IMAGES) 

    title = models.CharField(max_length=100) 

    urlname = models.CharField(max_length=100) 

    description = models.CharField(max_length=350) 

    selected_for_help = models.BooleanField(default=False, help_text="Display this screencast on the main help page?") 

    IMPORTANCE_CHOICES = ( 

        (1,'1'), 

        (2,'2'), 

        (3,'3'), 

        (4,'4'), 

        (5,'5'), 

        (6,'6'), 

        (7,'7'), 

        (8,'8'), 

        (9,'9'), 

        (10,'10') 

    ) 

    importance = models.IntegerField(choices=IMPORTANCE_CHOICES, blank=True, null=True) 

 

    class Meta: 

        db_table = 'mm_screencast' 

 

    def __unicode__(self): 

        return self.title 

 

 

class YoutubeScreencast(models.Model): 

    youtube_id = models.CharField(max_length=24, unique=True, help_text="Youtube video id (hint: http://www.youtube.com/watch?v=<YOUTUBE_VIDEO_ID>)") 

    image = models.ImageField(upload_to=settings.SCREENCAST_IMAGES) 

    title = models.CharField(max_length=100) 

    description = models.CharField(max_length=350) 

    selected_for_help = models.BooleanField(default=False, help_text="Display this screencast on the main help page?") 

    IMPORTANCE_CHOICES = ( 

        (1,'1'), 

        (2,'2'), 

        (3,'3'), 

        (4,'4'), 

        (5,'5'), 

        (6,'6'), 

        (7,'7'), 

        (8,'8'), 

        (9,'9'), 

        (10,'10') 

    ) 

    importance = models.IntegerField(choices=IMPORTANCE_CHOICES, blank=True, null=True) 

    video_width = models.IntegerField(default=853) 

    video_height = models.IntegerField(default=505) 

    play_hd = models.BooleanField(default=True) 

 

    def __unicode__(self): 

        return self.title