An open source, non-profit web search engine
Add missing function stub for migration
Daoud Clarkec0a2048a3ecb
diff --git a/mwmbl/models.py b/mwmbl/models.pyindex e744b08..7208b35 100644--- a/mwmbl/models.py+++ b/mwmbl/models.py@@ -121,6 +121,11 @@ class DomainSubmission(models.Model):rejection_detail = models.CharField(max_length=300, blank=True)+def random_api_key():+ """Kept for migration compatibility (0010_apikey references this by name)."""+ return secrets.token_urlsafe(64)++def generate_api_key() -> tuple[str, str]:"""Return (raw_key, key_hash). Store only the hash; return raw_key to the user once."""import hashlib