Skip to content
Snippets Groups Projects
Commit dcbe5c09 authored by Fabian Krüger's avatar Fabian Krüger
Browse files

fix bug

parent fafb8f5f
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,6 @@ class UserIdentifierTypes(IntEnum): ...@@ -43,7 +43,6 @@ class UserIdentifierTypes(IntEnum):
def to_dict(): def to_dict():
return {tag.name: tag.value for tag in UserIdentifierTypes} return {tag.name: tag.value for tag in UserIdentifierTypes}
class UserIdentifier(models.Model): class UserIdentifier(models.Model):
user = models.ForeignKey('user', on_delete=models.CASCADE, null=False) user = models.ForeignKey('user', on_delete=models.CASCADE, null=False)
identifier_type = models.IntegerField(choices=[(tag, tag.value) for tag in UserIdentifierTypes]) identifier_type = models.IntegerField(choices=[(tag, tag.value) for tag in UserIdentifierTypes])
...@@ -78,7 +77,7 @@ class ProductIdentifierTypes(IntEnum): ...@@ -78,7 +77,7 @@ class ProductIdentifierTypes(IntEnum):
class ProductIdentifier(models.Model): class ProductIdentifier(models.Model):
product = models.ForeignObject('product', on_delete=models.CASCADE, null=False) product = models.ForeignKey('product', on_delete=models.CASCADE, null=False)
identifier_type = models.IntegerField(choices=[(tag, tag.value) for tag in ProductIdentifierTypes]) identifier_type = models.IntegerField(choices=[(tag, tag.value) for tag in ProductIdentifierTypes])
identifier = models.TextField() identifier = models.TextField()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment