We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05a617d commit 342b2d3Copy full SHA for 342b2d3
1 file changed
ietf/community/models.py
@@ -69,7 +69,10 @@ def get_manage_url(self):
69
def get_display_config(self):
70
dconfig = getattr(self, '_cached_dconfig', None)
71
if not dconfig:
72
- self._cached_dconfig = DisplayConfiguration.objects.get_or_create(community_list=self)[0]
+ try:
73
+ self._cached_dconfig = DisplayConfiguration.objects.get(community_list=self)
74
+ except DisplayConfiguration.DoesNotExist:
75
+ self._cached_dconfig = DisplayConfiguration(community_list=self)
76
return self._cached_dconfig
77
78
0 commit comments