We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 453df4c + 8c9bfca commit f6c26c3Copy full SHA for f6c26c3
db/achievement.py
@@ -1,14 +1,13 @@
1
from django.db import models
2
import uuid
3
+from db.task import Level
4
from db.user import User
5
6
7
class Achievement(models.Model):
8
id = models.CharField(primary_key=True, default=uuid.uuid4, max_length=36)
9
name = models.CharField(max_length=75, unique=True)
- level_id = models.ForeignKey(
10
- "Level", on_delete=models.CASCADE, db_column="level_id"
11
- )
+ level_id = models.ForeignKey(Level, on_delete=models.CASCADE, db_column="level_id")
12
description = models.CharField(max_length=300)
13
icon = models.CharField(max_length=100)
14
has_vc = models.BooleanField()
0 commit comments