prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Bootstrap database with default data for the /safe-apps endpoint 
  When the database is created and the service is running, we should offer the option/utility to bootstrap it with the default list of safe-apps.
  
  Default database should contain the following data: https://github.com/gnosis/safe-apps-list/blob/development/public/gnosis-default.applist.json
  
  </issue>
  <code>
  [start of src/safe_apps/models.py]
  1 from django.contrib.postgres.fields import ArrayField
  2 from django.db import models
  3 
  4 
  5 class SafeApp(models.Model):
  6     url = models.URLField()
  7     name = models.CharField(max_length=200)
  8     icon_url = models.URLField()
  9     description = models.CharField(max_length=200)
  10     networks = ArrayField(models.IntegerField())
  11
  [end of src/safe_apps/models.py]
  [start of src/safe_apps/migrations/0001_initial.py]
  1 # Generated by Django 3.2 on 2021-04-16 14:52
  2 
  3 import django.contrib.postgres.fields
  4 from django.db import migrations, models
  5 
  6 
  7 class Migration(migrations.Migration):
  8 
  9     initial = True
  10 
  11     dependencies = [
  12     ]
  13 
  14     operations = [
  15         migrations.CreateModel(
  16             name='SafeApp',
  17             fields=[
  18                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  19                 ('url', models.URLField()),
  20                 ('name', models.CharField(max_length=200)),
  21                 ('icon_url', models.URLField()),
  22                 ('description', models.CharField(max_length=200)),
  23                 ('networks', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
  24             ],
  25         ),
  26     ]
  27
  [end of src/safe_apps/migrations/0001_initial.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/src/safe_apps/migrations/0001_initial.py b/src/safe_apps/migrations/0001_initial.py
  --- a/src/safe_apps/migrations/0001_initial.py
  +++ b/src/safe_apps/migrations/0001_initial.py
  @@ -1,4 +1,4 @@
  -# Generated by Django 3.2 on 2021-04-16 14:52
  +# Generated by Django 3.2 on 2021-04-28 13:39
   
   import django.contrib.postgres.fields
   from django.db import migrations, models
  @@ -15,8 +15,7 @@
           migrations.CreateModel(
               name='SafeApp',
               fields=[
  -                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  -                ('url', models.URLField()),
  +                ('url', models.URLField(primary_key=True, serialize=False)),
                   ('name', models.CharField(max_length=200)),
                   ('icon_url', models.URLField()),
                   ('description', models.CharField(max_length=200)),
  diff --git a/src/safe_apps/models.py b/src/safe_apps/models.py
  --- a/src/safe_apps/models.py
  +++ b/src/safe_apps/models.py
  @@ -3,7 +3,7 @@
   
   
   class SafeApp(models.Model):
  -    url = models.URLField()
  +    url = models.URLField(primary_key=True)
       name = models.CharField(max_length=200)
       icon_url = models.URLField()
       description = models.CharField(max_length=200)
  
verification_info: {"golden_diff": "diff --git a/src/safe_apps/migrations/0001_initial.py b/src/safe_apps/migrations/0001_initial.py\n--- a/src/safe_apps/migrations/0001_initial.py\n+++ b/src/safe_apps/migrations/0001_initial.py\n@@ -1,4 +1,4 @@\n-# Generated by Django 3.2 on 2021-04-16 14:52\n+# Generated by Django 3.2 on 2021-04-28 13:39\n \n import django.contrib.postgres.fields\n from django.db import migrations, models\n@@ -15,8 +15,7 @@\n         migrations.CreateModel(\n             name='SafeApp',\n             fields=[\n-                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n-                ('url', models.URLField()),\n+                ('url', models.URLField(primary_key=True, serialize=False)),\n                 ('name', models.CharField(max_length=200)),\n                 ('icon_url', models.URLField()),\n                 ('description', models.CharField(max_length=200)),\ndiff --git a/src/safe_apps/models.py b/src/safe_apps/models.py\n--- a/src/safe_apps/models.py\n+++ b/src/safe_apps/models.py\n@@ -3,7 +3,7 @@\n \n \n class SafeApp(models.Model):\n-    url = models.URLField()\n+    url = models.URLField(primary_key=True)\n     name = models.CharField(max_length=200)\n     icon_url = models.URLField()\n     description = models.CharField(max_length=200)\n", "issue": "Bootstrap database with default data for the /safe-apps endpoint \nWhen the database is created and the service is running, we should offer the option/utility to bootstrap it with the default list of safe-apps.\r\n\r\nDefault database should contain the following data: https://github.com/gnosis/safe-apps-list/blob/development/public/gnosis-default.applist.json\n", "before_files": [{"content": "from django.contrib.postgres.fields import ArrayField\nfrom django.db import models\n\n\nclass SafeApp(models.Model):\n    url = models.URLField()\n    name = models.CharField(max_length=200)\n    icon_url = models.URLField()\n    description = models.CharField(max_length=200)\n    networks = ArrayField(models.IntegerField())\n", "path": "src/safe_apps/models.py"}, {"content": "# Generated by Django 3.2 on 2021-04-16 14:52\n\nimport django.contrib.postgres.fields\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n    initial = True\n\n    dependencies = [\n    ]\n\n    operations = [\n        migrations.CreateModel(\n            name='SafeApp',\n            fields=[\n                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n                ('url', models.URLField()),\n                ('name', models.CharField(max_length=200)),\n                ('icon_url', models.URLField()),\n                ('description', models.CharField(max_length=200)),\n                ('networks', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),\n            ],\n        ),\n    ]\n", "path": "src/safe_apps/migrations/0001_initial.py"}]}