Package hm :: Package db :: Module tag :: Class Slug
[hide private]
[frames] | no frames]

Class Slug

source code


Nested Classes [hide private]
  Admin
  DoesNotExist
  MultipleObjectsReturned

Inherited from django.db.models.base.Model: __metaclass__

Instance Methods [hide private]
 
__unicode__(self) source code
 
AddManipulator(...)
 
ChangeManipulator(...)
 
objects(...)

Inherited from django.db.models.base.Model: __eq__, __init__, __ne__, __repr__, __str__, delete, save, validate

Inherited from django.db.models.base.Model (private): _collect_sub_objects, _get_FIELD_display, _get_FIELD_filename, _get_FIELD_height, _get_FIELD_size, _get_FIELD_url, _get_FIELD_width, _get_image_dimensions, _get_next_or_previous_by_FIELD, _get_next_or_previous_in_order, _get_pk_val, _save_FIELD_file, _set_pk_val

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]
NoneType
Initialize(klass)
Mixes the SlugMixin class into the Model classes specified in Slug.SLUGGABLE_MODELS.
source code
 
on_create(klass, sender, signal, instance, created, **kwargs) source code
 
make(klass, item, slug=None) source code
QuerySet
by_item(klass, item)
Returns the QuerySet containing Slugs associated with the specified item.
source code
Any
by_slug(klass, slug)
Returns the single item referenced by the specified Slug
source code
 
slugs_for(klass, items) source code
 
slug_for(klass, items) source code

Inherited from django.db.models.base.Model: add_to_class

Inherited from django.db.models.base.Model (private): _prepare

Class Variables [hide private]
  _default_manager = <django.db.models.manager.Manager object at...
  _meta = <Options for Slug>
int item_it
Instance Variables [hide private]
string (no spaces) slug = models.SlugField(max_length= 255)
A string to use to uniquely identify an object.
int, or ContentType item_type = models.ForeignKey(ContentType)
The ContentType id of item
  item_id = models.PositiveIntegerField(db_index= True)
The id of item in the appropriate table.
Any item = generic.GenericForeignKey('item_type', 'item_id')
The object the Slug references.
Properties [hide private]

Inherited from django.db.models.base.Model: pk

Inherited from object: __class__

Method Details [hide private]

Initialize(klass)
Class Method

source code 
Returns: NoneType
None

Class Variable Details [hide private]

_default_manager

Value:
<django.db.models.manager.Manager object at 0x407b368c>

Instance Variable Details [hide private]

slug

A string to use to uniquely identify an object. (Like a tag, except unique.)
Type:
string (no spaces)
Value:
models.SlugField(max_length= 255)