mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
models: Remove explicit id fields.
With django-stubs, these explicit copies of Django’s implicit id
fields are no longer needed for type checking. An exception is the
BigAutoField AbstractUserMessage.id, which is left alone.
This reverts commit c08ee904d8 (#15641).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
47c5deeccd
commit
ad2795698b
@@ -345,7 +345,6 @@ class LicenseLedger(models.Model):
|
||||
|
||||
|
||||
class ZulipSponsorshipRequest(models.Model):
|
||||
id = models.AutoField(auto_created=True, primary_key=True, verbose_name="ID")
|
||||
realm = models.ForeignKey(Realm, on_delete=CASCADE)
|
||||
requested_by = models.ForeignKey(UserProfile, on_delete=CASCADE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user