Re: Tweaking the admin title to display the model name

2017-03-21 Thread Andréas Kühne
No, sorry, we haven't written anything about it. It was another guy who
wrote the code as well, so I'm really not the right person to ask :-)

Regards,

Andréas

2017-03-21 8:53 GMT+01:00 Derek :

> Interesting to hear, Andréas.  Have you written up any of your experience
> with the implementation of nested formsets?
>
>
> On Monday, 20 March 2017 10:57:20 UTC+2, Andréas Kühne wrote:
>>
>> Yes,
>>
>> I actually have written an application where we use the django admin
>> interface as the primary work area for the client who uses the system.
>>
>> We use a lot of specially written actions and widgets, but it is really
>> versitile. The only problem we have had was when we wanted to do
>> polymorphism and nested formsets. That was a bit hard to write :-)
>>
>> Regards,
>>
>> Andréas
>>
>> 2017-03-20 7:39 GMT+01:00 Derek :
>>
>>> Good point; with some work (e.g. adding actions), the admin can cover 80
>>> to 90% of what most DB-focused projects will need - the django-suit
>>> interface also makes it look pretty slick!
>>>
>>> On Saturday, 18 March 2017 09:54:37 UTC+2, Andréas Kühne wrote:

 Yeah I know - the django admin platform is really great - add the
 grappelli interface to it and you can use it as a proper backend for a
 project. :-)

 Nice to see that I was able to push you in the right direction.

 Regads,

 Andréas

 2017-03-17 23:22 GMT+01:00 Mike Dewhirst :

> On 17/03/2017 7:49 PM, Andréas Kühne wrote:
>
>> You can override the admin change form for the model you want and
>> then change the title.
>>
>> You can check here for some information:
>> https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#
>> overriding-admin-templates
>>
>
> That's fantastic! Thanks Andréas ... here's the entire change in 2
> lines:
>
> {% extends "admin/change_form.html" %}
> {% block title %}{{ original }}{% endblock %}
>
> :-)
>
> Cheers
>
> Mike
>
>
>> Regards,
>>
>> Andréas
>>
>> 2017-03-17 5:21 GMT+01:00 Mike Dewhirst > >:
>>
>> Currently in an admin model change form, the admin page title is
>> "Change "
>>
>> How can I tweak the code or the template so it displays an
>> attribute of the model instance instead?
>>
>> I'm trying to work on a few instances at the same time and having
>> the model instance identifier would be very useful.
>>
>> Thanks
>>
>> Mike
>>
>>
>>
 --
>>> 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...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/a9875e7c-0e7a-4fca-b88c-1f72fb3c5cf7%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/26c5e75e-a4f9-48f4-804b-076963e9a592%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfvnxprTUdsdppVFrA0OGksOBMBMxFaOEggxdFMmsiATg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tweaking the admin title to display the model name

2017-03-21 Thread Derek
Interesting to hear, Andréas.  Have you written up any of your experience 
with the implementation of nested formsets?


On Monday, 20 March 2017 10:57:20 UTC+2, Andréas Kühne wrote:
>
> Yes,
>
> I actually have written an application where we use the django admin 
> interface as the primary work area for the client who uses the system.
>
> We use a lot of specially written actions and widgets, but it is really 
> versitile. The only problem we have had was when we wanted to do 
> polymorphism and nested formsets. That was a bit hard to write :-)
>
> Regards,
>
> Andréas
>
> 2017-03-20 7:39 GMT+01:00 Derek :
>
>> Good point; with some work (e.g. adding actions), the admin can cover 80 
>> to 90% of what most DB-focused projects will need - the django-suit 
>> interface also makes it look pretty slick!
>>
>> On Saturday, 18 March 2017 09:54:37 UTC+2, Andréas Kühne wrote:
>>>
>>> Yeah I know - the django admin platform is really great - add the 
>>> grappelli interface to it and you can use it as a proper backend for a 
>>> project. :-)
>>>
>>> Nice to see that I was able to push you in the right direction.
>>>
>>> Regads,
>>>
>>> Andréas
>>>
>>> 2017-03-17 23:22 GMT+01:00 Mike Dewhirst :
>>>
 On 17/03/2017 7:49 PM, Andréas Kühne wrote:

> You can override the admin change form for the model you want and then 
> change the title.
>
> You can check here for some information: 
> https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#overriding-admin-templates
>

 That's fantastic! Thanks Andréas ... here's the entire change in 2 
 lines:

 {% extends "admin/change_form.html" %}
 {% block title %}{{ original }}{% endblock %}

 :-)

 Cheers

 Mike


> Regards,
>
> Andréas
>
> 2017-03-17 5:21 GMT+01:00 Mike Dewhirst  >:
>
> Currently in an admin model change form, the admin page title is
> "Change "
>
> How can I tweak the code or the template so it displays an
> attribute of the model instance instead?
>
> I'm trying to work on a few instances at the same time and having
> the model instance identifier would be very useful.
>
> Thanks
>
> Mike
>
>
>
>>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a9875e7c-0e7a-4fca-b88c-1f72fb3c5cf7%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/26c5e75e-a4f9-48f4-804b-076963e9a592%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tweaking the admin title to display the model name

2017-03-20 Thread Andréas Kühne
Yes,

I actually have written an application where we use the django admin
interface as the primary work area for the client who uses the system.

We use a lot of specially written actions and widgets, but it is really
versitile. The only problem we have had was when we wanted to do
polymorphism and nested formsets. That was a bit hard to write :-)

Regards,

Andréas

2017-03-20 7:39 GMT+01:00 Derek :

> Good point; with some work (e.g. adding actions), the admin can cover 80
> to 90% of what most DB-focused projects will need - the django-suit
> interface also makes it look pretty slick!
>
> On Saturday, 18 March 2017 09:54:37 UTC+2, Andréas Kühne wrote:
>>
>> Yeah I know - the django admin platform is really great - add the
>> grappelli interface to it and you can use it as a proper backend for a
>> project. :-)
>>
>> Nice to see that I was able to push you in the right direction.
>>
>> Regads,
>>
>> Andréas
>>
>> 2017-03-17 23:22 GMT+01:00 Mike Dewhirst :
>>
>>> On 17/03/2017 7:49 PM, Andréas Kühne wrote:
>>>
 You can override the admin change form for the model you want and then
 change the title.

 You can check here for some information: https://docs.djangoproject.com
 /en/1.10/ref/contrib/admin/#overriding-admin-templates

>>>
>>> That's fantastic! Thanks Andréas ... here's the entire change in 2 lines:
>>>
>>> {% extends "admin/change_form.html" %}
>>> {% block title %}{{ original }}{% endblock %}
>>>
>>> :-)
>>>
>>> Cheers
>>>
>>> Mike
>>>
>>>
 Regards,

 Andréas

 2017-03-17 5:21 GMT+01:00 Mike Dewhirst >> mi...@dewhirst.com.au>>:

 Currently in an admin model change form, the admin page title is
 "Change "

 How can I tweak the code or the template so it displays an
 attribute of the model instance instead?

 I'm trying to work on a few instances at the same time and having
 the model instance identifier would be very useful.

 Thanks

 Mike



>> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/a9875e7c-0e7a-4fca-b88c-1f72fb3c5cf7%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfOU8QKxH7yMPLh1VspX-QMLUo4mL_kF6YZ55qDdKPt3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tweaking the admin title to display the model name

2017-03-20 Thread Derek
Good point; with some work (e.g. adding actions), the admin can cover 80 to 
90% of what most DB-focused projects will need - the django-suit interface 
also makes it look pretty slick!

On Saturday, 18 March 2017 09:54:37 UTC+2, Andréas Kühne wrote:
>
> Yeah I know - the django admin platform is really great - add the 
> grappelli interface to it and you can use it as a proper backend for a 
> project. :-)
>
> Nice to see that I was able to push you in the right direction.
>
> Regads,
>
> Andréas
>
> 2017-03-17 23:22 GMT+01:00 Mike Dewhirst  >:
>
>> On 17/03/2017 7:49 PM, Andréas Kühne wrote:
>>
>>> You can override the admin change form for the model you want and then 
>>> change the title.
>>>
>>> You can check here for some information: 
>>> https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#overriding-admin-templates
>>>
>>
>> That's fantastic! Thanks Andréas ... here's the entire change in 2 lines:
>>
>> {% extends "admin/change_form.html" %}
>> {% block title %}{{ original }}{% endblock %}
>>
>> :-)
>>
>> Cheers
>>
>> Mike
>>
>>
>>> Regards,
>>>
>>> Andréas
>>>
>>> 2017-03-17 5:21 GMT+01:00 Mike Dewhirst >>  >:
>>>
>>> Currently in an admin model change form, the admin page title is
>>> "Change "
>>>
>>> How can I tweak the code or the template so it displays an
>>> attribute of the model instance instead?
>>>
>>> I'm trying to work on a few instances at the same time and having
>>> the model instance identifier would be very useful.
>>>
>>> Thanks
>>>
>>> Mike
>>>
>>>
>>>
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a9875e7c-0e7a-4fca-b88c-1f72fb3c5cf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tweaking the admin title to display the model name

2017-03-18 Thread Andréas Kühne
Yeah I know - the django admin platform is really great - add the grappelli
interface to it and you can use it as a proper backend for a project. :-)

Nice to see that I was able to push you in the right direction.

Regads,

Andréas

2017-03-17 23:22 GMT+01:00 Mike Dewhirst :

> On 17/03/2017 7:49 PM, Andréas Kühne wrote:
>
>> You can override the admin change form for the model you want and then
>> change the title.
>>
>> You can check here for some information: https://docs.djangoproject.com
>> /en/1.10/ref/contrib/admin/#overriding-admin-templates
>>
>
> That's fantastic! Thanks Andréas ... here's the entire change in 2 lines:
>
> {% extends "admin/change_form.html" %}
> {% block title %}{{ original }}{% endblock %}
>
> :-)
>
> Cheers
>
> Mike
>
>
>> Regards,
>>
>> Andréas
>>
>> 2017-03-17 5:21 GMT+01:00 Mike Dewhirst  mi...@dewhirst.com.au>>:
>>
>> Currently in an admin model change form, the admin page title is
>> "Change "
>>
>> How can I tweak the code or the template so it displays an
>> attribute of the model instance instead?
>>
>> I'm trying to work on a few instances at the same time and having
>> the model instance identifier would be very useful.
>>
>> Thanks
>>
>> Mike
>>
>> -- 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 post to this group, send email to django-users@googlegroups.com
>> .
>> Visit this group at https://groups.google.com/group/django-users
>> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/bf52e2be-f042
>> -dc0f-9e76-86a9ad62d6fc%40dewhirst.com.au
>> > 2-dc0f-9e76-86a9ad62d6fc%40dewhirst.com.au>.
>> For more options, visit https://groups.google.com/d/optout
>> .
>>
>>
>> --
>> 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 > django-users+unsubscr...@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/CAK4qSCc%2B3a-nSy_s7_TDLw5EJRaRHpWcpW-SfFZV
>> SR%2B%2BmJNeng%40mail.gmail.com > sgid/django-users/CAK4qSCc%2B3a-nSy_s7_TDLw5EJRaRHpWcpW-SfFZ
>> VSR%2B%2BmJNeng%40mail.gmail.com?utm_medium=email_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/fa4bbf36-25a8-546b-817c-39756c889a8c%40dewhirst.com.au.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCdpXgSpZqXf6tUV7324RpvK%3Di4%2BT%3DMiv1C1uEzh7uoKhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tweaking the admin title to display the model name

2017-03-17 Thread Mike Dewhirst

On 17/03/2017 7:49 PM, Andréas Kühne wrote:
You can override the admin change form for the model you want and then 
change the title.


You can check here for some information: 
https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#overriding-admin-templates


That's fantastic! Thanks Andréas ... here's the entire change in 2 lines:

{% extends "admin/change_form.html" %}
{% block title %}{{ original }}{% endblock %}

:-)

Cheers

Mike



Regards,

Andréas

2017-03-17 5:21 GMT+01:00 Mike Dewhirst >:


Currently in an admin model change form, the admin page title is
"Change "

How can I tweak the code or the template so it displays an
attribute of the model instance instead?

I'm trying to work on a few instances at the same time and having
the model instance identifier would be very useful.

Thanks

Mike

-- 
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 post to this group, send email to django-users@googlegroups.com
.
Visit this group at https://groups.google.com/group/django-users
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/bf52e2be-f042-dc0f-9e76-86a9ad62d6fc%40dewhirst.com.au

.
For more options, visit https://groups.google.com/d/optout
.


--
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 post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCc%2B3a-nSy_s7_TDLw5EJRaRHpWcpW-SfFZVSR%2B%2BmJNeng%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fa4bbf36-25a8-546b-817c-39756c889a8c%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Tweaking the admin title to display the model name

2017-03-17 Thread Andréas Kühne
You can override the admin change form for the model you want and then
change the title.

You can check here for some information:
https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#overriding-admin-templates

Regards,

Andréas

2017-03-17 5:21 GMT+01:00 Mike Dewhirst :

> Currently in an admin model change form, the admin page title is "Change
> "
>
> How can I tweak the code or the template so it displays an attribute of
> the model instance instead?
>
> I'm trying to work on a few instances at the same time and having the
> model instance identifier would be very useful.
>
> Thanks
>
> Mike
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/django-users/bf52e2be-f042-dc0f-9e76-86a9ad62d6fc%40dewhirst.com.au.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCc%2B3a-nSy_s7_TDLw5EJRaRHpWcpW-SfFZVSR%2B%2BmJNeng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.