Re: Looking for mentors for Google Summer of Code

2020-10-24 Thread Gagan Deep
Hi Asjad,

This mailing is for users of Django. Your question will be well suited in
the django-core-mentorship
<https://groups.google.com/g/django-core-mentorship> mailing list. Feel
free to repost your query there if it is still unresolved

Warm Regards,
Gagan Deep

On Thu, Oct 1, 2020 at 6:31 PM Asjad khan  wrote:

>
> I am looking for mentors who can train me to so that I am able to be a
> part of this esteemed organization in the next year's Google Summer of Code.
> I have a strong passion for Django and have projects on GitHub too.
> But I need help so that I am fully aware about this community.
> Is there someone who can help me out in this journey?
>
> Thank You
> Asjad Ahmed Khan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/230a6403-cacb-4c9d-b25b-503e768cb905n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/230a6403-cacb-4c9d-b25b-503e768cb905n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

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


Extending Django admin delete confirmation page

2020-03-30 Thread Gagan Deep
Greetings,

I am wondering if it is possible to extend Django Admin's delete 
confirmation page. I tried the following but the received template does not 
exist error page.

> % extends 'admin:admin/delete_confirmation.html' %}
>
I refer to this website which stated it is possible to do so 
https://book.huihoo.com/django/en/1.0/chapter17/index.html
I want to add a few custom actions which should require confirmation before 
proceeding. 

Thanks and Regards
Gagan Deep

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c71f8c6c-c218-4dbc-ab4f-6c5c814d5a3a%40googlegroups.com.


Re: Extending Django admin delete confirmation page

2020-04-01 Thread Gagan Deep
That doesn't work either. 😅

On Tue, Mar 31, 2020 at 12:19 PM Klaus Laube  wrote:

> Hi, Gagan.
>
> Try removing the "admin:" from your instruction: `{% extends
> "admin/delete_confirmation.html" %}`
>
> Here is the template with a possible blocks that you might overwrite:
> https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/delete_confirmation.html
>
> Cheers.
>
>
> Em seg., 30 de mar. de 2020 às 23:20, Gagan Deep <
> the.one.above.all.ti...@gmail.com> escreveu:
>
>> Greetings,
>>
>> I am wondering if it is possible to extend Django Admin's delete
>> confirmation page. I tried the following but the received template does not
>> exist error page.
>>
>>> % extends 'admin:admin/delete_confirmation.html' %}
>>>
>> I refer to this website which stated it is possible to do so
>> https://book.huihoo.com/django/en/1.0/chapter17/index.html
>> I want to add a few custom actions which should require confirmation
>> before proceeding.
>>
>> Thanks and Regards
>> Gagan Deep
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/c71f8c6c-c218-4dbc-ab4f-6c5c814d5a3a%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c71f8c6c-c218-4dbc-ab4f-6c5c814d5a3a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAE89-bcfPg9oTJGfy%2B4Hi1oAipJK5NTjuVkHvm9UVOM%3D0JURMw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE89-bcfPg9oTJGfy%2B4Hi1oAipJK5NTjuVkHvm9UVOM%3D0JURMw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

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


Callable field in fieldset's field

2020-04-15 Thread Gagan Deep
Greetings of the day, 

I have defined a model admin inheriting from admin.ModelAdmin class. There 
is one of the fields which I want to show on the admin dashboard which is a 
function. I read in Django docs that for a callable function to be a field, 
it should be added in readonly_fields. So far, it was working great. The 
problem arose when I mentioned that callable field in the fieldset. 

This worked fine:
class Myadmin(admin.ModelAdmin):
readonly_fields = ('my_callable_field', )
fields = ('my_callable_field' )


But, doing this popped Unknown field(s) (my_callable_field) specified for 
. Check fields/fieldsets/exclude attributes of class Myadmin
class Myadmin(admin.ModelAdmin):
readonly_fields = ('my_callable_field', )
fieldsets = (
(None, {'fields': ('my_callable_field',)}),
)

I don't understand why this is happening.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9184abd2-f9cb-47f2-b0dd-0153da12fee9%40googlegroups.com.


Re: Callable field in fieldset's field

2020-04-17 Thread Gagan Deep
Thanks Federico, it did solved the problem.



On Fri, Apr 17, 2020 at 6:28 AM 'Federico Capoano' via Django users <
django-users@googlegroups.com> wrote:

> Is this the kind of thing you're looking for?
>
> https://github.com/openwisp/openwisp-firmware-upgrader/tree/1e9fa26d75a48ae9274c2708ea9a10134a2bb9d0/openwisp_firmware_upgrader/base/admin.py#L150-L186
>
> Fed
>
>
> On Wednesday, April 15, 2020 at 4:15:48 PM UTC-5, Gagan Deep wrote:
>>
>> Greetings of the day,
>>
>> I have defined a model admin inheriting from admin.ModelAdmin class.
>> There is one of the fields which I want to show on the admin dashboard
>> which is a function. I read in Django docs that for a callable function to
>> be a field, it should be added in readonly_fields. So far, it was working
>> great. The problem arose when I mentioned that callable field in the
>> fieldset.
>>
>> This worked fine:
>> class Myadmin(admin.ModelAdmin):
>> readonly_fields = ('my_callable_field', )
>> fields = ('my_callable_field' )
>>
>>
>> But, doing this popped Unknown field(s) (my_callable_field) specified for
>>  . Check fields/fieldsets/exclude attributes of class Myadmin
>> class Myadmin(admin.ModelAdmin):
>> readonly_fields = ('my_callable_field', )
>> fieldsets = (
>> (None, {'fields': ('my_callable_field',)}),
>> )
>>
>> I don't understand why this is happening.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/dd24c6eb-fcaa-41dc-ac78-6f2ba700c5e9%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/dd24c6eb-fcaa-41dc-ac78-6f2ba700c5e9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

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