github.models: handle the fork argument

This commit is contained in:
Nicolas Dandrimont 2017-09-05 11:38:11 +02:00
parent 164922afe2
commit cf3220d1fb

View file

@ -16,4 +16,5 @@ class GitHubModel(ModelBase):
fork = Column(Boolean)
def __init__(self, *args, **kwargs):
self.fork = kwargs.pop('fork', False)
super().__init__(*args, **kwargs)