Remove some prints

remotes/origin/logger
David Barragán Merino 2015-09-04 11:03:56 +02:00
parent 285c759eb6
commit cd7e8fca2b
6 changed files with 3 additions and 8 deletions

View File

@ -15,7 +15,6 @@ def set_current_values_of_blocked_note_and_is_blocked_to_the_last_snapshot(apps,
model = get_model_from_key(history_entry.key)
pk = get_pk_from_key(history_entry.key)
try:
print("Fixing history_entry: ", history_entry.created_at)
obj = model.objects.get(pk=pk)
save = False
if hasattr(obj, "is_blocked") and "is_blocked" not in history_entry.snapshot:
@ -30,7 +29,7 @@ def set_current_values_of_blocked_note_and_is_blocked_to_the_last_snapshot(apps,
history_entry.save()
except ObjectDoesNotExist as e:
print("Ignoring {}".format(history_entry.pk))
pass
class Migration(migrations.Migration):

View File

@ -21,7 +21,6 @@ def _fix_tags_model(tags_model):
def fix_tags(apps, schema_editor):
print("Fixing user issue tags")
_fix_tags_model(Issue)

View File

@ -21,7 +21,6 @@ def _fix_tags_model(tags_model):
def fix_tags(apps, schema_editor):
print("Fixing project tags")
_fix_tags_model(Project)

View File

@ -21,7 +21,6 @@ def _fix_tags_model(tags_model):
def fix_tags(apps, schema_editor):
print("Fixing user task tags")
_fix_tags_model(Task)

View File

@ -21,7 +21,6 @@ def _fix_tags_model(tags_model):
def fix_tags(apps, schema_editor):
print("Fixing user story tags")
_fix_tags_model(UserStory)

View File

@ -49,8 +49,8 @@ def _helper_test_http_method_responses(client, method, url, data, users, after_e
response = getattr(client, method)(url, data, content_type=content_type)
else:
response = getattr(client, method)(url)
if response.status_code >= 400:
print("Response content:", response.content)
#if response.status_code >= 400:
# print("Response content:", response.content)
results.append(response)