refactor models into files
This commit is contained in:
parent
c3d20fda7b
commit
f5f4ec8ac9
8 changed files with 716 additions and 687 deletions
14
hub/services/models/content.py
Normal file
14
hub/services/models/content.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from django.db import models
|
||||
from django_prose_editor.fields import ProseEditorField
|
||||
|
||||
|
||||
class WebsiteFaq(models.Model):
|
||||
question = models.CharField(max_length=200)
|
||||
answer = ProseEditorField()
|
||||
order = models.IntegerField(default=0)
|
||||
|
||||
class Meta:
|
||||
ordering = ["order"]
|
||||
|
||||
def __str__(self):
|
||||
return self.question
|
Loading…
Add table
Add a link
Reference in a new issue