(self)
return size
Return max upload for given user.
        Used to validate in forms
Return max upload for given user.
        Used to validate in forms
Return max upload for given user . Used to validate in forms
def upload_size(self):
        """
        Return max upload for given user.
        Used to validate in forms
        """
        # Get the default upload size.
        msize = self.max_upload_size
        # Increase the admin size when checking for validation.
        admin_msize = msize * 100
        size = admin_msize if self.user.is_staff or self.user.is_superuser else msize
        return size
def upload_size ( self ) : # Get the default upload size. msize = self . max_upload_size # Increase the admin size when checking for validation. admin_msize = msize * 100 size = admin_msize if self . user . is_staff or self . user . is_superuser else msize return size