Last active
December 15, 2015 09:19
-
-
Save ulope/5237428 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.admin import site | |
from treebeard.admin import TreeAdmin | |
from apps.foldermgr.models import FolderTemplate | |
site.register(FolderTemplate, TreeAdmin) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db.models.fields import CharField | |
from django.utils.translation import ugettext as _ | |
from treebeard.ns_tree import NS_Node | |
class FolderTemplate(NS_Node): | |
name = CharField(_("Name"), max_length=200) | |
node_order_by = ['name'] | |
def __unicode__(self): | |
return self.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment