Adding Checkbox in ModelAdmin

2012-07-10 Thread JZint
Hello, i have a little question which i could'nt answer myself reading the documentation. i'm trying to modify the modelAdmin of my "Picture"-model this is what i'm trying to do: class PictureAdmin(admin.ModelAdmin): def save_model(self, request, obj, form, change): # if mycheckbox

The problem with storing relative paths

2013-02-15 Thread JZint
Hello! So this is what i wanna do: I have built a model with an admin interface for letting the user create his own site. it has following fields: name = models.CharField(max_length = 50) formtemplate = FilePathField(path='/path/to/project/myforms/templates/forms', match=".\*.htm[l

Re: The problem with storing relative paths

2013-02-16 Thread JZint
27;FORMTEMPLATE_PATH', > match=".\*.htm[l]") > . > . > > > On Friday, February 15, 2013 4:14:44 PM UTC, JZint wrote: >> >> Hello! >> >> So this is what i wanna do: >> >> I have built a model with an admin interface for letting t