Undefined variable and Class 'Photo' has no 'objects' member in Django on python3

I am following a tutorial video and i have written the codes as shown in the video tutorial but mine is not working but with Admin.py and Views.py errors.

Please what did i write wrongly?