Package django :: Package db :: Package models
[hide private]
[frames] | no frames]

Package models

source code

Submodules [hide private]

Functions [hide private]
 
permalink(func)
Decorator that calls urlresolvers.reverse() to return a URL using parameters returned by the decorated function "func".
source code

Imports: settings, ObjectDoesNotExist, ImproperlyConfigured, validators, connection, get_apps, get_app, get_models, get_model, register_models, Q, Manager, Model, AdminOptions, SubfieldBase, ForeignKey, OneToOneField, ManyToManyField, ManyToOneRel, ManyToManyRel, OneToOneRel, TABULAR, STACKED, signals, curry, capfirst


Function Details [hide private]

permalink(func)

source code 

Decorator that calls urlresolvers.reverse() to return a URL using
parameters returned by the decorated function "func".

"func" should be a function that returns a tuple in one of the
following formats:
    (viewname, viewargs)
    (viewname, viewargs, viewkwargs)