django-bootstrap-theme / bootstrap_theme /

from django.db import models

class Carousel(models.Model):
    carousel_group = models.SlugField(help_text='Use the same group name for carousels that display together.')
    caption = models.CharField(max_length=40, help_text='The large caption text.')
    lead = models.TextField(help_text='The marketing text just below the caption.')
    image = models.ImageField(upload_to='carousel', help_text='The big banner image to display.')
    ordering = models.PositiveSmallIntegerField(help_text='The carousel items are sorted by this number.')
    button_text = models.CharField(max_length=30, default='Learn more', help_text='The text to place on the button.')
    button_url = models.CharField(max_length=20, default='list-machines', help_text='The destination of the button.')
    button_parameter = models.CharField(max_length=40, blank=True, null=True, help_text='A special parameter for the URL, leave blank if unsure.')
    def __unicode__(self):
        return u"%s" % self.caption
    class Meta:
        ordering = ['ordering']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.