mirror of
https://github.com/bugsink/bugsink.git
synced 2026-01-06 05:10:15 -06:00
Flake8: for migrations _just_ ignore the whitespace errors
this helps catching some _real_ errors while saving us from having to format automatically generated code
This commit is contained in:
@@ -23,6 +23,7 @@ def set_event_grouping(apps, schema_editor):
|
||||
grouping = issue.grouping_set.first()
|
||||
Event.objects.filter(issue=issue).update(grouping=grouping)
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def unfill_stored_event_count(apps, schema_editor):
|
||||
Project = apps.get_model("projects", "Project")
|
||||
Project.objects.all().update(stored_event_count=0)
|
||||
|
||||
@@ -18,7 +18,7 @@ class Migration(migrations.Migration):
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), # Defines AUTH_USER_MODEL, which we use
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), # Defines AUTH_USER_MODEL, which we use
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
||||
Reference in New Issue
Block a user