Django implements to click the button to view the resource and then deduct points, how to make the user related to this resource

such as

< H1 > Resource Information < / H1 >

class NiHao (models.Model):

mingzi = models.CharField(max_length=60, verbose_name=_(u"/"), blank = True, null = True,)
vip = models.CharField(max_length=60, verbose_name=_(u""), blank = True, null = True,)
body = models.TextField(_(u",,"))
mmtags = models.ManyToManyField("MmTags", verbose_name = _(u""), blank = True)
category = models.ForeignKey("Category", verbose_name = _(""))
level = models.IntegerField(default=2, verbose_name=u"")

user information
class User (AbstractUser):

levels = models.IntegerField(default=0, verbose_name = u"")
nickname = models.CharField(max_length=36, blank=True, null=True, verbose_name=u"")
list_id = models.PositiveIntegerField(_(u""), default = 0)

if a user needs to click a button to see the information in the VIP field in the resource, ajax needs a number to execute aauser.levels-bbnihao.level, such as

if the user views it this time. You need to deduct more points next time. If you don"t know how to implement it with django. How to make users have a logo with this resource.
when the user looks at this information again. No more points need to be deducted

I wonder if this will make people understand the problem I am trying to solve.
Water travel is limited. I really haven"t come up with any ideas. Which one of the great gods will guide you?

Jan.25,2022

create a relationship table between users and resources, either create a downloaded resource list field in the user table, or create a downloaded user list field in the resource table. It is best to create another table

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a1fa-2c1ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a1fa-2c1ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?