Did I find the right examples for you? yes no

All Samples(170)  |  Call(109)  |  Derive(0)  |  Import(61)

src/n/s/nscms-0.5.8/nscms/base/content/models.py   nscms(Download)
 
from ckeditor.fields import RichTextField
from django_extensions.db.fields import CreationDateTimeField,\
    ModificationDateTimeField, AutoSlugField
 
class SimpleContentModel(models.Model):
    title = models.CharField(
        _('title'), max_length=255)
    slug = AutoSlugField(
        _('slug'), populate_from='title',
class PersonModel(models.Model):
    name = models.CharField(_('name'), max_length=255)
    slug = AutoSlugField(
        _('slug'), populate_from='name', overwrite=True,
        max_length=255, editable=False)
 
    slug = AutoSlugField(
        verbose_name=_('slug'),
        populate_from='title',
        overwrite=True,
class PTBRSimpleContentModel(models.Model):
    title = models.CharField(_(u'Título'), max_length=255)
    slug = AutoSlugField(
        _('slug'), populate_from='titulo',
        overwrite=True, max_length=255, editable=False)

src/n/s/nscms-0.5.8/nscms/localflavor/br/models.py   nscms(Download)
from django.utils.translation import ugettext_lazy as _
 
from django_extensions.db.fields import \
    AutoSlugField, CreationDateTimeField, ModificationDateTimeField
 
class BRTitleSlugCreationModificationModel(BRCreationModificationModel):
 
    titulo = models.CharField(_(u'Título'), max_length=255)
    slug = AutoSlugField(
        _('slug'), populate_from='titulo', overwrite=True, max_length=255,

src/d/j/django-organizations-0.1.10/organizations/models.py   django-organizations(Download)
from django.utils.translation import ugettext_lazy as _
 
from django_extensions.db.fields import AutoSlugField
from django_extensions.db.models import TimeStampedModel
from organizations.managers import OrgManager, ActiveOrgManager
    name = models.CharField(max_length=200,
            help_text=_("The name of the organization"))
    slug = AutoSlugField(max_length=200, blank=False, editable=True,
            populate_from='name', unique=True,
            help_text=_("The name in all lowercase, suitable for URL identification"))

src/d/j/django-organizations-HEAD/organizations/models.py   django-organizations(Download)
from django.utils.translation import ugettext_lazy as _
 
from django_extensions.db.fields import AutoSlugField
from django_extensions.db.models import TimeStampedModel
 
class Organization(OrganizationBase, TimeStampedModel):
    """
    Default Organization model.
    """
    slug = AutoSlugField(max_length=200, blank=False, editable=True,

src/d/j/django_hstore_flattenfields-0.8/hstore_flattenfields/models.py   django_hstore_flattenfields(Download)
 
from django_orm.postgresql import hstore
from django_extensions.db.fields import AutoSlugField
 
from db.base import (
    """
    name = models.CharField(max_length=80, null=False, verbose_name=_('Name'))
    slug = AutoSlugField(populate_from='name', separator='_', max_length=100, unique=True, overwrite=True)
    description = models.TextField(null=True, blank=True, verbose_name=_('Description'))
 
    name = models.CharField(max_length=80, null=False, verbose_name=_('Name'))
    order = models.IntegerField(null=False, blank=False, default=0, verbose_name=_('Order'))
    slug = AutoSlugField(populate_from='name', separator='_',max_length=100, unique=True, overwrite=True)
 
    # relations

src/d/j/django-hstore-flattenfields-HEAD/hstore_flattenfields/models.py   django-hstore-flattenfields(Download)
 
from django_orm.postgresql import hstore
from django_extensions.db.fields import AutoSlugField
 
from db.base import (
    """
    name = models.CharField(max_length=80, null=False, verbose_name=_('Name'))
    slug = AutoSlugField(populate_from='name', separator='_', max_length=100, unique=True, overwrite=True)
    description = models.TextField(null=True, blank=True, verbose_name=_('Description'))
 
    name = models.CharField(max_length=80, null=False, verbose_name=_('Name'))
    order = models.IntegerField(null=False, blank=False, default=0, verbose_name=_('Order'))
    slug = AutoSlugField(populate_from='name', separator='_',max_length=100, unique=True, overwrite=True)
 
    # relations

src/d/j/django-calendartools-HEAD/calendartools/modelbase.py   django-calendartools(Download)
from django.db.models.loading import get_model
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.fields import (
    CreationDateTimeField, ModificationDateTimeField, AutoSlugField
)
class CalendarBase(StatusBase):
    name = models.CharField(_('name'), max_length=255)
    slug = AutoSlugField(_('slug'), unique=True, editable=True, populate_from='name')
    description = models.TextField(_('description'), blank=True)
    status = StatusField(_('status'),
class EventBase(StatusBase):
    name = models.CharField(_('name'), max_length=255)
    slug = AutoSlugField(_('slug'),
        unique=True,
        editable=True,

src/d/j/django-actualities-0.2.2/actualities/models.py   django-actualities(Download)
from django.db import models
import settings
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
from django_extensions.db.fields import AutoSlugField
class Actuality(models.Model):
    """(Actuality description)"""
 
    title = models.CharField(_(u'Title'), max_length=255)
    slug = AutoSlugField(_(u'Slug'), populate_from='title', max_length=255, editable=True)

src/d/j/django-provinceitaliane-0.1.2/provinceitaliane/models.py   django-provinceitaliane(Download)
#coding=utf-8
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.fields import AutoSlugField
 
    """
    name = models.CharField(_('name'), max_length=1000)
    slug = AutoSlugField(_('slug'), populate_from='name', unique=True, editable=False)
    position = models.CharField(_('position'), max_length=1, choices=region_position_list)
    special = models.BooleanField(_('special laws'), default=False)

src/d/j/django-coop-0.7.3/coop/org/models.py   django-coop(Download)
class BaseRoleCategory(models.Model):
    label = models.CharField(_(u'label'), max_length=60)
    slug = exfields.AutoSlugField(populate_from=('label'), overwrite=True)
    uri = models.CharField(_(u'URI'), blank=True, max_length=250)
 
class BaseOrganizationCategory(models.Model):
    label = models.CharField(blank=True, max_length=100)
    slug = exfields.AutoSlugField(populate_from=('label'), overwrite=True)
    description = models.TextField(_(u'description'), blank=True)
 
                                     on_delete=models.SET_NULL)
 
    slug = exfields.AutoSlugField(populate_from='title', blank=True, overwrite=True)
    notes = models.TextField(_(u'notes'), blank=True)
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next