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 = checked:
        #     obj.save_with_xmp()
        # else:
        #     obj.save()
        pass

So i'm wondering how i can add a checkbox to my ModelAdmin form which i can 
use.
The checkbox should only be a control element but no part of the database 
model.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/PYhiflt-QvUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to