models: Remove redundant Meta.permissions on Realm model.

This is dead code leftover from the old way of handling admin
permissions.
This commit is contained in:
Mateusz Mandera 2020-12-20 15:08:15 +01:00 committed by Tim Abbott
parent d0dc04a093
commit c9b6d8ddad
2 changed files with 17 additions and 6 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 2.2.17 on 2020-12-20 14:01
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('zerver', '0307_rename_api_super_user_to_can_forge_sender'),
]
operations = [
migrations.AlterModelOptions(
name='realm',
options={},
),
]

View File

@ -627,12 +627,6 @@ class Realm(models.Model):
def presence_disabled(self) -> bool:
return self.is_zephyr_mirror_realm
class Meta:
permissions = (
('administer', "Administer a realm"),
('api_super_user', "Can send messages as other users for mirroring"),
)
def realm_post_delete_handler(sender: Any, **kwargs: Any) -> None:
# This would be better as a functools.partial, but for some reason
# Django doesn't call it even when it's registered as a post_delete handler.