Skip to content

Commit

Permalink
FIX: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Pereto committed Sep 26, 2020
1 parent 526385e commit 3b5eb21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/borghive/migrations/0003_repo_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='repository',
name='mode',
field=models.CharField(choices=[('BORG', 'Borg'), ('IMPORT', 'Import'), ('EXPORT', 'Export')], default='BORG', max_length=6),
field=models.CharField(blank=True, choices=[('BORG', 'Borg'), ('IMPORT', 'Import'), ('EXPORT', 'Export')], default='BORG', max_length=6),
),
migrations.AlterField(
model_name='repository',
Expand Down
1 change: 1 addition & 0 deletions src/borghive/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class Repository(BaseModel):
max_length=6,
choices=RepositoryMode.CHOICES,
default=RepositoryMode.BORG,
blank=True
)

repo_user = models.OneToOneField(RepositoryUser, on_delete=models.CASCADE)
Expand Down

0 comments on commit 3b5eb21

Please sign in to comment.