(self)
return settings.MAX_UPLOAD_SIZE
Used to set the inital value
Used to set the inital value
Used to set the inital value
def set_upload_size(self):
        """
        Used to set the inital value
        """

        # Admin users upload limit
        if self.user.is_superuser or self.user.is_staff:
            return settings.ADMIN_UPLOAD_SIZE
        # Trusted users upload limit
        if self.user.profile.trusted:
            return settings.TRUSTED_UPLOAD_SIZE

        # Get the default upload limit
        return settings.MAX_UPLOAD_SIZE
def set_upload_size ( self ) : # Admin users upload limit if self . user . is_superuser or self . user . is_staff : return settings . ADMIN_UPLOAD_SIZE # Trusted users upload limit if self . user . profile . trusted : return settings . TRUSTED_UPLOAD_SIZE # Get the default upload limit return settings . MAX_UPLOAD_SIZE