Corey Bertram is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againdjango-piston overview
Recent commits See more »
| Author | Revision | Comments | Message | Labels | Date |
|---|---|---|---|---|---|
|
|
e2b4dd507261 |
added 'no_params' decorator to utils. used for functions like create where you dont want any extra kwargs/args passed to the url. use it before 'validate' to avoid getting form errors returned' |
|
||
|
|
6ce673e168a6 |
added the 'essential' decorator which can be used before a validate decorator to ensure that the proper param has been passed before attempting to validate against a model. example usage would be putting @essential(['name']) before an update def in order to ensure that the user has entered a proper url with a 'name' in order to do lookups on existing items with. |
|
||
|
|
2b588f3a28ef |
Updated pistons 'validate' decorator to allow for PUT updates on existing models. Now if using it on an update function, you must pass in the name of the pk or unique field in searchfor dict, and the model so that an existing instance can be found. |
|
||
|
|
e1369e02fe33 |
removed whitespaces from utils... |
|
||
|
|
7970b070f884 |
adding some more people to AUTHORS.txt |
|