view apps/pygments_style/models.py @ 213:6f285552a9d0 default tip

Remove requirement to be logged in to see comments
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 16 Jan 2014 10:59:05 -0500
parents f872c643b056
children
line wrap: on
line source

from django.db import models


class PygmentsStyle(models.Model):
    """
    For allowing users to choose between syntax highlighting styles.

    Affects viewing snippets but not creating them. Users can set a
    default and can change the style when viewing specific snippets or
    files if necessary.
    """
    class_name = models.CharField(max_length=20)
    description = models.TextField(null=True, blank=True)

    def __unicode__(self):
        return self.class_name