Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #48

Merged
merged 3 commits into from
Apr 21, 2017
Merged

Fixes #48

merged 3 commits into from
Apr 21, 2017

Conversation

dianaboiangiu
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 75.907% when pulling 9ff310a on fixes into d6df84d on master.

).first()
if published_property:
published_property.status = DELETED_PENDING
published_property.save()
Copy link
Contributor

Choose a reason for hiding this comment

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

Fetch the property once (status__in=[PUBLISHED, PENDING]) - always try to keep the number of queries to a minimum. If the property doesn't exist, create it; else if status is PENDING modify its value, else if status is PUBLISHED, modify its status and create the new pending property.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 75.92% when pulling b21a5ec on fixes into 530ca91 on master.

@iuliachiriac iuliachiriac merged commit 420abf8 into master Apr 21, 2017
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.

None yet

3 participants