M
M
mashincode2020-05-13 16:23:15
Django
mashincode, 2020-05-13 16:23:15

What is the best way to organize the field in the Reminder Model?

It is very similar to an alarm clock, there is a reminder model and I need to make a field in which the user selects which days of the week the reminder is reminded of, I thought to implement something like a multiselection field and there will be days of the week in the options, but maybe there is a better option?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alternativshik, 2020-05-13
@alternativshik

I would just put a list like this in a ListField [0,0,0,1,1,0,0], and if you need time, then the same, but a two-dimensional array 24/7 and then in the UI you can conveniently and beautifully stuff it into the form of a grid with marked squares.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question