Skip to content

Conversation

@Kiro8888
Copy link

Blog beta with datatable and permissions

kiro added 30 commits August 12, 2023 16:16
absence: change the file datatable and integrate in blog
llamar el authot bien, filtrados y llamar la vista de actualizar
cambiar la funcion de actualizar, la ruta.
el buscar
Falta:
1.Limpiar codigo
2.Revisar bug
Copy link
Contributor

@allexiusw allexiusw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment to consider factory-boy for fixtures.


def setUp(self):
self.entry_1 = models.Entry.objects.create(title=u'Welcome!', is_published=True)
self.entry_1 = models.Entry.objects.create(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For fixtures in test you can use factory-boy it will allow you to easy create fixtures and deal with django model dependencies. https://factoryboy.readthedocs.io/en/stable/

self.entry = models.Entry.objects.create(title=u'Welcome!',
content='### Some Content',
is_published=False)
self.entry = models.Entry.objects.create(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use factory-boy here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants