Custom Groups model and interoperability

2021-10-03 Thread Scot Hacker
I asked this question on django-users and got no response. Thought I might 
have better luck getting an "official" opinion on this here.

You can call blocks in your templates anything you like, but if you intend 
to share your software with the world, you'd better use `{% block content 
%}` if you expect interoperability between your project and 3rd party apps.

My question is along similar lines, but relates to using custom Groups. 
There is no `settings.AUTH_GROUPS_MODEL` equivalent to `AUTH_USER_MODEL`. 
If you make a custom Group model that subclasses Django Group, you can 
still use `user.groups.all()`. But if a project uses a Group model that 
that does not subclass `Group`, that doesn't work of course.

I can't seem to find anywhere in the docs where Django recommends doing it 
one way or another. I've always thought that a custom group should subclass 
Group, and that is common, but some projects apparently don't do it that 
way.

I am asking because I am the maintainer of a reusable app that requires 
groups compatibility, and have come across an app that that uses a 
non-Django-derived groups system. We have come to impasse about the best 
way to support this (or whether to support it all).

Are there any best practices on this question in the Django docs or 
elsewhere?

Thanks,
Scot

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/103ccb2e-cc5e-4b80-97e1-ce983cf8a5e4n%40googlegroups.com.


Re: Postgresql testing question

2021-10-03 Thread Mariusz Felisiak
Failures are caused by the default search configuration, see 
https://code.djangoproject.com/ticket/29084.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/53bf50fc-0f9e-4ce5-91a8-b54a33c520cbn%40googlegroups.com.


Re: Postgresql testing question

2021-10-03 Thread Carlton Gibson
Hey Sarah, no problem!

If you can’t work out why you’re seeing a failure locally, perhaps post on
the forum and I’ll see if I can help out (or Ken will be me to it 😃)

Kind regards, Carlton

On Sun, 3 Oct 2021 at 19:38, Sarah A  wrote:

> Thanks Carlton !
>
> Yes, it's not related, it's tests about headline search
> (postgres_tests.test_search.SearchHeadlineTests)
> I'll try to open a PR to see, if it's only on my side and should be my
> configuration or I will open a ticket with all informations related.
>
> Le dimanche 3 octobre 2021 à 19:16:33 UTC+2, carlton...@gmail.com a
> écrit :
>
>> Hi Sarah. 👋
>>
>> If the failures are unrelated, you can ignore them for the purposes of
>> your ticket: if you open a PR the CI will run against all configurations,
>> so an issue should show up there.
>>
>> Maybe it’s a local config issue, but if it doesn't look that way, you can
>> open a ticket on Trac (with the exact error and so on) or just as well
>> follow-up with more details here.
>>
>> In general, it’s not expected that the test suite fails, but without more
>> details I can’t say for sure what’s going on.
>>
>> Kind regards, Carlton
>>
>>
>>
>> On Sun, 3 Oct 2021 at 19:07, Sarah A  wrote:
>>
>>> Hi folks,
>>>
>>> I'm future new contributor (I hope so) and I'm facing a problem.
>>>
>>> I add tests for a ticket (#27694
>>> ) which are PostgreSQL
>>> tests case. I've run all the tests in the postgres_tests file and I got
>>> failures but it's not linked to my additional tests. I've got same failures
>>> without them.
>>>
>>> I don't know what I'm supposed to do:
>>> Submit my contribution and create a bug ticket ?  Something else?
>>>
>>> Note: I don't understand completely what's happening to fix those tests.
>>>
>>> Happy to get the right direction.
>>>
>>> Best regards,
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django developers (Contributions to Django itself)" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-develop...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-developers/093da5c5-fc0d-414c-b995-d2755b43036bn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/2977d53b-0341-4da3-b3e2-cf775e8c282cn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAJwKpyT2%3D0vpsYeF%3D9f75tMp7hbBA%2BqKPNpEGBmtQJ4f4irgXA%40mail.gmail.com.


Re: Postgresql testing question

2021-10-03 Thread Sarah A
Thanks Carlton ! 
  
Yes, it's not related, it's tests about headline search 
(postgres_tests.test_search.SearchHeadlineTests) 
I'll try to open a PR to see, if it's only on my side and should be my 
configuration or I will open a ticket with all informations related.

Le dimanche 3 octobre 2021 à 19:16:33 UTC+2, carlton...@gmail.com a écrit :

> Hi Sarah. 👋 
>
> If the failures are unrelated, you can ignore them for the purposes of 
> your ticket: if you open a PR the CI will run against all configurations, 
> so an issue should show up there. 
>
> Maybe it’s a local config issue, but if it doesn't look that way, you can 
> open a ticket on Trac (with the exact error and so on) or just as well 
> follow-up with more details here.
>
> In general, it’s not expected that the test suite fails, but without more 
> details I can’t say for sure what’s going on. 
>
> Kind regards, Carlton 
>
>
>
> On Sun, 3 Oct 2021 at 19:07, Sarah A  wrote:
>
>> Hi folks,
>>
>> I'm future new contributor (I hope so) and I'm facing a problem. 
>>
>> I add tests for a ticket (#27694 
>> ) which are PostgreSQL 
>> tests case. I've run all the tests in the postgres_tests file and I got 
>> failures but it's not linked to my additional tests. I've got same failures 
>> without them.
>>
>> I don't know what I'm supposed to do:
>> Submit my contribution and create a bug ticket ?  Something else? 
>>
>> Note: I don't understand completely what's happening to fix those tests.
>>
>> Happy to get the right direction.
>>
>> Best regards,
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/093da5c5-fc0d-414c-b995-d2755b43036bn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/2977d53b-0341-4da3-b3e2-cf775e8c282cn%40googlegroups.com.


Re: Postgresql testing question

2021-10-03 Thread Carlton Gibson
Hi Sarah. 👋

If the failures are unrelated, you can ignore them for the purposes of your
ticket: if you open a PR the CI will run against all configurations, so an
issue should show up there.

Maybe it’s a local config issue, but if it doesn't look that way, you can
open a ticket on Trac (with the exact error and so on) or just as well
follow-up with more details here.

In general, it’s not expected that the test suite fails, but without more
details I can’t say for sure what’s going on.

Kind regards, Carlton



On Sun, 3 Oct 2021 at 19:07, Sarah A  wrote:

> Hi folks,
>
> I'm future new contributor (I hope so) and I'm facing a problem.
>
> I add tests for a ticket (#27694
> ) which are PostgreSQL tests
> case. I've run all the tests in the postgres_tests file and I got failures
> but it's not linked to my additional tests. I've got same failures without
> them.
>
> I don't know what I'm supposed to do:
> Submit my contribution and create a bug ticket ?  Something else?
>
> Note: I don't understand completely what's happening to fix those tests.
>
> Happy to get the right direction.
>
> Best regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/093da5c5-fc0d-414c-b995-d2755b43036bn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAJwKpySb6uJDT%3Dc2vvXQNTycRd2VmF1vHybUGPgdfKCVbpqCPQ%40mail.gmail.com.


Postgresql testing question

2021-10-03 Thread Sarah A
Hi folks,

I'm future new contributor (I hope so) and I'm facing a problem. 

I add tests for a ticket (#27694 
) which are PostgreSQL tests 
case. I've run all the tests in the postgres_tests file and I got failures 
but it's not linked to my additional tests. I've got same failures without 
them.

I don't know what I'm supposed to do:
Submit my contribution and create a bug ticket ?  Something else? 

Note: I don't understand completely what's happening to fix those tests.

Happy to get the right direction.

Best regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/093da5c5-fc0d-414c-b995-d2755b43036bn%40googlegroups.com.


Re: I want to contribute to django to make a version of admin that work with ajax

2021-10-03 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi!

I think you've found the wrong mailing list for this post. This mailing
list is for discussing the development of Django itself, not for support
using Django. This means the discussions of bugs and features in Django
itself, rather than in your code using it. People on this list are unlikely
to answer your support query with their limited time and energy.

For support, please follow the "Getting Help" page:
https://docs.djangoproject.com/en/3.2/faq/help/ . This will help you find
people who are willing to support you, and to ask your question in a way
that makes it easy for them to answer.

Thanks for your understanding and all the best,

Adam

On Sun, 3 Oct 2021 at 13:15, wael muhammed  wrote:

> I want to make Django generic views and Django admin work with Ajax
> without refresh the bag at navigation between pages and add,update or
> delete data.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/a47ea730-016c-4c96-a2a6-a8d6d40df6cbn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM1VAXAUq%3D12hqgFFRAZ2jDLK1boSudfyH6SuT3bHgMdwQ%40mail.gmail.com.


I want to contribute to django to make a version of admin that work with ajax

2021-10-03 Thread wael muhammed
I want to make Django generic views and Django admin work with Ajax without 
refresh the bag at navigation between pages and add,update or delete data.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/a47ea730-016c-4c96-a2a6-a8d6d40df6cbn%40googlegroups.com.