Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

from backend_app.models.recommendationList import RecommendationList 

from base_app.models import User 

 

from .loadGeneric import LoadGeneric 

 

 

class LoadRecommendationLists(LoadGeneric): 

""" 

Class to load the tags in the app. 

""" 

 

def __init__(self, admin: User): 

self.admin = admin 

 

def load(self): 

recommendation_list_ex = RecommendationList( 

title="Ma première liste", 

owner=self.admin, 

is_public=True, 

description="Ceci est une super liste !", 

content=[], 

) 

recommendation_list_ex.save()