Re: Ovreeride django mptt admin queryset

2014-11-21 Thread Collin Anderson
Hi, Try using get_queryset() instead of queryset(). Collin On Tuesday, November 18, 2014 8:02:12 AM UTC-5, Neeraj Sharma wrote: > > Hi, > > I want to override django mptt admin queryset, i want to filter the the > queryset. > I also tried the following method in admin.py b

Override Django Mptt Admin Queryset

2014-11-18 Thread Neeraj Sharma
Hi, I want to override django mptt admin queryset, i want to filter the the queryset. I also tried the following method in admin.py but its not working. def queryset(self, request): qs = super(DataField_NEWAdmin, self).queryset(request) return qs.filter(game_event__id=10

Ovreeride django mptt admin queryset

2014-11-18 Thread Neeraj Sharma
Hi, I want to override django mptt admin queryset, i want to filter the the queryset. I also tried the following method in admin.py but its not working. def queryset(self, request): qs = super(DataField_NEWAdmin, self).queryset(request) return qs.filter(game_event__id=10

override django mptt admin querset

2014-11-18 Thread Neeraj Sharma
Hi, I want to override django mptt admin queryset, i want to filter the the queryset. I also tried the following method in admin.py but its not working. def queryset(self, request): qs = super(DataField_NEWAdmin, self).queryset(request) qs.filter(game_event__id

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
is list from time to time is an automatic > admin interface for django-mptt. I'd like to advertise a piece of code > we have written at our company a little bit, and I'd also like to invite > everyone to give comments and feedbacks. I do have many more ideas > floating around

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
st from time to time is an automatic > admin interface for django-mptt. I'd like to advertise a piece of code > we have written at our company a little bit, and I'd also like to invite > everyone to give comments and feedbacks. I do have many more ideas > floating around, and

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
*How to use Django Mttp Admin as an Inline in admin.py* *?* On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from time to time is an automatic > admin interface for django-mptt. I'd like to advertise

Re: django-mptt

2014-08-07 Thread Collin Anderson
It should be pretty easy to upgrade your project from 1.4 to 1.4.2, as not much changed between those versions. On Thursday, August 7, 2014 3:38:15 AM UTC-4, Akshay Mukadam wrote: > > Is there any way that I can install django-mptt for django 1.4. > Currently django-mptt is avai

django-mptt

2014-08-07 Thread Akshay Mukadam
Is there any way that I can install django-mptt for django 1.4. Currently django-mptt is available for django1.4.2. But I require it for my old project which is based onn django 1.4 Please help Thank you -- You received this message because you are subscribed to the Google Groups "D

example on django mptt

2013-05-28 Thread Randa Hisham
-- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham ٍ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Django MPTT - breadcrumb in view function

2012-10-13 Thread Cal Leeming [Simplicity Media Ltd]
Hi, Personally, I tend to keep the breadcrumb logic completely separate from any custom code logic. Instead, I have something like this: context['breadcrumb'] = ['menu1', 'sub menu 2', 'sub sub menu 3'] And then in the templates, you'd have something like; {% if x.0 == 'menu1' %} d

Django MPTT - breadcrumb in view function

2012-10-13 Thread enemybass
How to create breadcrumb in my view function? class Category(MPTTModel): name = models.CharField(max_length=50, verbose_name=u'Name') parent = TreeForeignKey('self', null=True, blank=True, related_name='children') slug = models.SlugField() class Product(models.Mod

Re: django-mptt compared w/ django-treebeard

2012-02-03 Thread Aljoša Mohorović
On Thu, Feb 2, 2012 at 8:13 PM, creecode wrote: > I wouldn't assume that just because something hasn't been updated for awhile > that it isn't good. like i said, i've used treebeard w/o problems so i don't think it's bad. my question/interest is mostly because i've noticed that most projects use

Re: django-mptt compared w/ django-treebeard

2012-02-03 Thread Matt Stevens
*I used django-mptt (combined with FeinCMS's TreeEditor) on a few of my Django sites, it's brilliant.* *Any questions I've had have been quickly answered, usually by the maintainer** Craig de Stigter… he's pretty sharp.* * * * * *Matt. Stevens | www.dirtymonkey.co.uk* On Wed,

Re: django-mptt compared w/ django-treebeard

2012-02-02 Thread creecode
Hello Aljosa, I wouldn't assume that just because something hasn't been updated for awhile that it isn't good. It simply could be that the app does what it needs to and there hasn't been a reason to change it. You might want to contact the app authors and ask if their projects are actively ma

django-mptt compared w/ django-treebeard

2012-02-01 Thread Aljosa Mohorovic
when using django-mptt or django-treebeard did anybody have bad experience? i've used treebeard before w/o problems but it looks like mptt is maintained and has newer releases and treebeard last release was in 2010. can anybody comment on possible future development/maintenance for these pro

django-mptt-comments app error

2011-12-15 Thread cmc
I am trying to use `django-mptt-comments` app on my django project however I'm running into problems when I try posting a comment. I get the error : `AttributeError: 'NoneType' object has no attribute 'level'` Here is the traceback: https://gist.github.com/148117

django-mptt

2010-04-08 Thread gradja
Hello all, I try to use django-mptt, i changed my country model in order to be a tree class Country(models.Model): country_name = models.CharField(max_length=30) parent= models.ForeignKey('self', null=True, blank=True, related_name='children')

django-mptt TreeNodeChoiceField

2010-02-11 Thread geraldcor
Sorry to ask such a seemingly silly question, but how do I use TreeNodeChoiceField in a ModelForm. To create a new node, I created a ModelForm, and, like other ModelForms, I thought I could just override the normal form widget. Here are my classes class Folder(models.Model): parent = model

Re: State of the Django MPTT Art?

2010-02-11 Thread Max Battcher
different sets of nodes, and hopefully comes with a good admin interface too! Googling shows both django-mptt and -treebeard, but are there good recommendations pro- or con- for either one? Or is there a better third choice out there now? They both seem quite strong and useful. I think Treebeard

State of the Django MPTT Art?

2010-02-10 Thread Jon Loeliger
nodes, and hopefully comes with a good admin interface too! Googling shows both django-mptt and -treebeard, but are there good recommendations pro- or con- for either one? Or is there a better third choice out there now? Thanks, jdl -- You received this message because you are subscribed to the Goo

Trying to make django-mptt work with inherited models

2009-10-03 Thread phoebebright
Have spent quite a few hours on this one but not familiar enough with django inerds to make much progress. Here is the model: class Stuff(models.Model): name = models.CharField(max_length=140) parent = models.ForeignKey('self', null=True, blank=True, related_name='children') mptt.regist

Re: Django MPTT Admin

2009-02-26 Thread Antoni Aloy
2009/2/26 Matthias Kestenholz : > > Hey, > > A topic which comes up on this list from time to time is an automatic > admin interface for django-mptt. I'd like to advertise a piece of code > we have written at our company a little bit, and I'd also like to invite >

Django MPTT Admin

2009-02-26 Thread Matthias Kestenholz
Hey, A topic which comes up on this list from time to time is an automatic admin interface for django-mptt. I'd like to advertise a piece of code we have written at our company a little bit, and I'd also like to invite everyone to give comments and feedbacks. I do have many more idea

Re: Django-mptt admin

2008-09-08 Thread Matthias Kestenholz
Hi, On Mon, Sep 8, 2008 at 4:09 PM, Erik Allik <[EMAIL PROTECTED]> wrote: > > Hi, > > Does anyone have actual working code for administering models that use > django-mptt? It'd be nice if the code was free, but if it's not, maybe > we can work something ou

Django-mptt admin

2008-09-08 Thread Erik Allik
Hi, Does anyone have actual working code for administering models that use django-mptt? It'd be nice if the code was free, but if it's not, maybe we can work something out. Erik Allik --~--~-~--~~~---~--~~ You received this message because you are

Re: django-mptt

2008-09-05 Thread Martin Diers
On Sep 4, 2008, at 6:35 AM, peter_g wrote: > > > Hi! > > Playing with the wonderful mptt code: > http://code.google.com/p/django-mptt/ > > I would like to ask if someone knows how to do this: > (I play with some kind of navigation for websites) > > I have a

django-mptt

2008-09-04 Thread peter_g
Hi! Playing with the wonderful mptt code: http://code.google.com/p/django-mptt/ I would like to ask if someone knows how to do this: (I play with some kind of navigation for websites) I have a tree where some nodes are marked "inactive" or "deleted". Furthermore,

Re: django-mptt and fixtures

2008-09-03 Thread Martin Diers
The problem with fixtures in documented on the django-mptt page on Google code. There is a patch you need to apply to get them to work. The patch is not necessary for Trunk, however django-mptt does not work on trunk, as too much has changed - in particular, signals. I would really caution

django-mptt and fixtures

2008-09-03 Thread pihentagy
Hi all! Has anybody tried to load a fixture to a model class, which is registered with mptt? I tried and failed, all the internal columns need to be filled. Has anybody a solution how to dump and/or restore such tables? thanks Gergo --~--~-~--~~~---~--~~ You rece

django mptt and fixtures

2008-04-08 Thread novice
HI, I am using django mptt and I also want to use fixtures with my registered model. However, since mptt inserts fields that are NOT NULL, I was not able to do so. I found this link http://code.google.com/p/django-mptt/source/browse/trunk/docs/models.txt?r=100 where it was described that I have

Displaying a Tree view in template using django-mptt

2008-02-25 Thread Manakel
Hello Dear all, First let me say that i'm very new in term of web based developpemnt (the HTML/CSS Part). i've always worked on backend logic (in java, python, etc) never on the end user interface directly. This said, i'm trying to use the django-mptt to install a simple