I’m building a site for the local cub scouts using Pinax. Does anyone have any suggestions as to how we can moderate photos before they are uploaded?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you mean you only want to display approved photos then django-gatekeeper is a good option. You simply register the
Imagemodeland it will add a generic relationship which includes various moderation fields. The main one being the
moderation_statusone which can beBy default when a new
Imageis created it will be set to pending status and visible for approval in the moderation queue view that is included.When you want to display the approved images, instead of simply
Image.objects.all(), gatekeeper adds a few extra methods to access objects with the various statuses. So to access the approved, pending, and rejected objects you would use respectively.I haven’t tested pinax out but I’ve dropped gatekeeper into my own sites without changing the apps it was being used in and without any problems.