Thursday, May 25, 2017

Re: Custom Model Manager

Apologies I was being really a bit too clever. I just need to put the deault manager first in my model and then use my custom manager in my view queryset and everything is fine.

On 25 May 2017 at 18:01, David Turner <dturner52@googlemail.com> wrote:
That would be fine if I was using 1.10 but this is a legacy system using 1.9. This will be upgraded in the foreseeable future to 1.11

Thanks

On 25 May 2017 at 17:01, Melvyn Sopacua <m.r.sopacua@gmail.com> wrote:

On Thursday 25 May 2017 08:37:32 'dtdave' via Django users wrote:

 

> My application model has fields for candidate and jobs.

> My problem is that once the job expires it is being dropped from both

> the candidates and the applications as obviously the expired items

> manager is the default.

> Any help on how to correct this would be appreciated.

 

The trick to Django is knowing where to find the relevant documentation bit.

--

Melvyn Sopacua

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/AjQXrIrkEjw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@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/2567353.Uvk92CTyiI%40devstation.

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+unsubscribe@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/CALwQ%2B-uk91JRYc%3Dd9P%2Bfi5yFnwH%2B3x0bvUZfsBti0GDzmP1Z8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment