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:
Anders Kaseorg
2022-10-05 23:18:46 -07:00
committed by Tim Abbott
parent 47c5deeccd
commit ad2795698b
2 changed files with 0 additions and 49 deletions

View File

@@ -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)