fenya123 / forum123

Flask application written for educational purposes.
http://193.124.115.171/
1 stars 1 forks source link

67: Encapsulate models deletion #70

Closed EugeneTurkin closed 1 year ago

EugeneTurkin commented 1 year ago

In order to separate application layers we need to move all "low-level" database related code into models.

In the scope of this task we need to encapsulate all models deletion functionality into models methods. We need to get rid of using session.delete() and session.commit() in our routes, because this is a database layer responsibility.