'django.core.exceptions.FieldError: Unknown field(s) (Actions) specified for Copyrightrece

I want to create 2 models in models.py and 2 forms in forms.py for webpage. but it shows unknown field error #models.py

class Copyrightapp(models.Model):
   Sno = models.IntegerField()
class Copyrightrece(models.Model):
  Name = models.CharField(max_length=200)                                                                                                                                                                                                                                                     
                                                                                         

django.core.exceptions.FieldError: Unknown field(s) (Actions) specified for Copyrightrece –



Solution 1:[1]

The class has to have properties or at least a placeholder:

class Copyrightapp(models.Model):
   pass


class Copyrightrece(models.Model):
   pass

You could follow the nice django tutorials where you see examples like:

class Question(models.Model):
    question_text = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')


class Choice(models.Model):
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    choice_text = models.CharField(max_length=200)
    votes = models.IntegerField(default=0)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Karl