mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
models: Fix bug in unique_together condition on RealmPlayground.
We don't need to worry about breaking already configured playgrounds since this tweak makes the condition less strict.
This commit is contained in:
committed by
Tim Abbott
parent
0b337e0819
commit
96c5a9e303
@@ -1038,7 +1038,7 @@ class RealmPlayground(models.Model):
|
||||
)
|
||||
|
||||
class Meta:
|
||||
unique_together = (("realm", "name"),)
|
||||
unique_together = (("realm", "pygments_language", "name"),)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"<RealmPlayground({self.realm.string_id}): {self.pygments_language} {self.name}>"
|
||||
|
||||
Reference in New Issue
Block a user