add commit_id to Package

This commit is contained in:
Laura Klünder 2016-09-13 18:22:44 +02:00
parent 30e8204055
commit 8d2e18c890
4 changed files with 33 additions and 1 deletions

View file

@ -16,7 +16,7 @@ class LevelSerializer(serializers.ModelSerializer):
class PackageSerializer(serializers.ModelSerializer):
class Meta:
model = Package
fields = ('name', 'home_repo', 'depends', 'bounds')
fields = ('name', 'home_repo', 'commit_id', 'depends', 'bounds')
def to_representation(self, obj):
result = super().to_representation(obj)