Skip to content

Commit

Permalink
Fix static types
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Jul 9, 2024
1 parent 0af1004 commit 7e69d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions api/models/agreement_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ class AgreementSignature(models.Model):
agreement_id = models.CharField(max_length=40)
signed_at = models.DateTimeField()

class Meta:
unique_together = ["contributor", "agreement_id"]

class Meta(TypedModelMeta):
unique_together = ["contributor", "agreement_id"]
verbose_name = _("agreement_signature")
verbose_name_plural = _("agreement_signatures")

Expand Down
4 changes: 1 addition & 3 deletions api/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ class Repository(models.Model):
points = models.IntegerField(default=0)

class Meta(TypedModelMeta):
unique_together = ["contributor", "name"]
verbose_name = _("repository")
verbose_name_plural = _("repositories")

class Meta:
unique_together = ["contributor", "name"]

def __str__(self):
return self.name

0 comments on commit 7e69d68

Please sign in to comment.