Skip to content

Commit 64e724e

Browse files
author
Bojan Jovanovic
committed
Non existing conference inside tests, we can leave default to be None.
1 parent 3607547 commit 64e724e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyconbalkan/conference/abstractions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77

88
def _get_default_conference():
9-
return Conference.objects.first().id
9+
if Conference.objects.exists():
10+
return Conference.objects.first().id
1011

1112

1213
class AbstractConference(models.Model):

0 commit comments

Comments
 (0)