-
-class Book(models.Model):
- class Meta:
- permissions = (
- ("can_share", "Can share documents without pull requests."),
- )
- abstract=True
- pass
-
-
-class PullRequest(models.Model):
-
- REQUEST_STATUSES = (
- ("N", "Pending for resolution"),
- ("R", "Rejected"),
- ("A", "Accepted & merged"),
- )
-
- comitter = models.ForeignKey(User) # the user who request the pull
- comment = models.TextField() # addtional comments to the request
-
- # document to merge
- document = models.CharField(max_length=255)