Skip to content

Conversation

@Xarvius
Copy link
Collaborator

@Xarvius Xarvius commented Feb 10, 2020

add filestack for project images editor

package/forms.py Outdated
timestamp_name = get_image_name(file_type)
self.absolute_image_path = rename_file(dest_path, uuid_name, timestamp_name)
self.image_path = join_path_with_file_name(image_project_path, timestamp_name)
except ValidationError:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

package/utils.py Outdated

import uuid
import time
import os
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please sort imports

"images": ProjectImage.objects.filter(project=project),
"package": project,
"action": "Save",
"FILESTACK_API_KEY": settings.FILESTACK_API_KEY,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add it also to .env.example

const formElement = clickedSpan.parentNode;
const deleteCheck = formElement.childNodes[2];
const image = formElement.childNodes[5]
if(deleteCheck.checked == true){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true is not needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants