Coder Social home page Coder Social logo

Comments (7)

Benbb96 avatar Benbb96 commented on June 15, 2024

Hi @gab-luz, can you confirm you tried what's suggested here ?

from django-helpdesk.

uhurusurfa avatar uhurusurfa commented on June 15, 2024

By default, teams functionality is enabled in Django Helpdesk.
Per the issue that @Benbb96 pointed you to, you will have to disable the (Pinax) teams feature to use the allauth app.

You best bet is to start with a fresh DB after setting your configuration correctly to omit teams unless you are comfortable with cleaning out any migrations that are already processed for Django Helpdesk.

from django-helpdesk.

timthelion avatar timthelion commented on June 15, 2024

Serriously we should just dissable teams by default, I'm sorry I caused so many people problems, I really had no idea what havoc would come of that one silly dependency 😵‍💫

from django-helpdesk.

gab-luz avatar gab-luz commented on June 15, 2024

Hi @gab-luz, can you confirm you tried what's suggested here ?
I did. Nothing different happened. I put that on my settings.py

from django-helpdesk.

gab-luz avatar gab-luz commented on June 15, 2024

By default, teams functionality is enabled in Django Helpdesk. Per the issue that @Benbb96 pointed you to, you will have to disable the (Pinax) teams feature to use the allauth app.

You best bet is to start with a fresh DB after setting your configuration correctly to omit teams unless you are comfortable with cleaning out any migrations that are already processed for Django Helpdesk.
I've tried this and it didn't work (ISSUE 912):

HELPDESK_TEAMS_MODEL = 'usr.Person'
HELPDESK_TEAMS_MIGRATION_DEPENDENCIES = []
HELPDESK_KBITEM_TEAM_GETTER = lambda _: None

BUT, using the code below in my settings.py made all the error messages related django-helpdesk gone (also ISSUE 912, but didn't see it)

INSTALLED_APPS = [
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.sites",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    # "django.contrib.humanize", # Handy template tags
    "django.contrib.admin",
    "django.forms",
    "django.contrib.humanize",  # Required for elapsed time formatting
    "bootstrap4form",
    # Required for nicer formatting of forms with the default templates
    # 'account',  # Required by pinax-teams
    # 'pinax.invitations',  # Required by pinax-teams
    # 'pinax.teams',  # Team support
    # 'reversion',  # Required by pinax-teams
    "helpdesk",  # This is us!
]

from django-helpdesk.

gab-luz avatar gab-luz commented on June 15, 2024

Too early:

SystemCheckError: System check identified some issues:

ERRORS:
helpdesk.KBItem.team: (fields.E300) Field defines a relation with model 'pinax_teams.Team', which is either not installed, or is abstract.
helpdesk.KBItem.team: (fields.E307) The field helpdesk.KBItem.team was declared with a lazy reference to 'pinax_teams.team', but app 'pinax_teams' isn't installed.

When running manage.py makemigrations, I got the error above. It depends on teams to work.

from django-helpdesk.

timthelion avatar timthelion commented on June 15, 2024

Closing as duplicate #912

from django-helpdesk.

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.