Giter Site home page Giter Site logo

Comments (4)

coleifer avatar coleifer commented on July 17, 2024

There is no approval mechanism as part of django-relationships -- it simply provides a way for connecting users and querying those relationships. The test is correct in that it is testing that a symmetrical relationship is automatically created.

Suppose you wanted to build a facebook site w/approvals...you would have one user "follow" another (1-way), then the pending requests would be a given user's followers (excluding those they followed in turn). When a user wanted to "approve" a request, they would simply follow in turn and the relationship would become symmetrical.

This isn't built into django-relationships because the logic for handling approvals will probably be app-specific.

from django-relationships.

epicserve avatar epicserve commented on July 17, 2024

I ended up making my own views for this, in a proprietary app called "friends" in the project I'm using django-relationships on.

It sure would cut down and the learning curve and the time it takes to add friending to a project if there were two different example projects included with django-relationships one for Facebook style friends and one for Twitter style friends.

I would be happy to help work on adding the Facebook style example app, since I have a lot of that work mostly done.

from django-relationships.

coleifer avatar coleifer commented on July 17, 2024

Thank you so much, I will take a look at making this happen but if you've already got a lot of the wokr out of the way I'd be happy to review and merge.

from django-relationships.

epicserve avatar epicserve commented on July 17, 2024

Since my code is in it's own app that depends on django-relationships, it might be better if I just put my code in a gist or something and then have you suggest the best way to re-use the code.

from django-relationships.

Related Issues (20)

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.