Giter Site home page Giter Site logo

curso_django's People

Contributors

cloves23 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

curso_django's Issues

PEP8: Ajuste no nome

Para seguir o Use _ em vez de camel case para esses valores. O resultado será um novo atributo com esse nome.

Veja essa regra:
https://www.python.org/dev/peps/pep-0008/#function-and-variable-names

related_name='shoppingLists',

related_query_name='shoppingList',

Esse problema também ocorre nesse trecho, no entanto, o problema pode ser maior

ShoppingList = models.OneToOneField(ShoppingList, on_delete=models.CASCADE)

Relação O2O

Há problemas nesses pontos com o tipo de relação. Para você identificar o problema, crie um objeto de Shop, por exemplo, e depois tente criar mais de um objeto de ShoppingList ou mesmo Product. Além desses, há outras relações com problema.

owner = models.OneToOneField(Person,

shop = models.OneToOneField(Shop,

shop = models.OneToOneField(Shop,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.