Debian Codegraph @

tests/admin_scripts/app_raising_warning/models.py

raw
1 from django.core import checks
2 from django.db import models
3
4
5 class ModelRaisingMessages(models.Model):
6 @classmethod
7 def check(self, **kwargs):
8 return [checks.Warning("A warning")]