Circular import problem

2014-04-16 Thread Daniel Oźminkowski
Hello, I recently cut my models.py into separate files and now I try to fix all the problems with imports that showed up. I hit the wall on this one though. Purpose of the application is to process a text file with instructions and fit them into hierarchical structure like this: Program <- Node

second level nested inlines not showing in django-nested-inlines

2014-04-16 Thread Andreas Bloch
I'm trying to add a nested admin interface using https://github.com/s-block/django-nested-inline *but the 2nd level is not showing up in the admin*... I have a foreign key relationship between three models: ContractTemplate => ContractClause => ContractSubClauses (i.e. a template can have ma

Re: Circular import problem

2014-04-16 Thread Johannes Schneider
You can use from foo import bar inside your method/class definitions or you can use import foo.bar. bg, Johannes On 16.04.2014 11:37, Daniel Oźminkowski wrote: Hello, I recently cut my models.py into separate files and now I try to fix all the problems with imports that showed up. I hit the w

How to create Union in Django queryset

2014-04-16 Thread Shoaib Ijaz
Sorry for duplicate post How to create Union I am using Django REST Framework in project and I want to create union two different Models. *My Models* class A(models.Model): name = models.CharField(max_lengt

Upgrading from 1.4.3 to 1.4.10

2014-04-16 Thread nu . everest
How do I discover what changed between Django 1.4.3 and 1.4.10? Will require changes to my code, or will it just work? -- 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 ema

Re: Upgrading from 1.4.3 to 1.4.10

2014-04-16 Thread Lucas Klassmann
Hi, Check documentation: https://docs.djangoproject.com/en/dev/releases/1.4.3/ On the bottom you can navigate between releases. Att. On Wed, Apr 16, 2014 at 11:08 AM, wrote: > How do I discover what changed between Django 1.4.3 and 1.4.10? > > Will require changes to my code, or will it just

Re: Upgrading from 1.4.3 to 1.4.10

2014-04-16 Thread Lucas Klassmann
Hi, again! Remember to check all releases between is your project version with target version. In your case, check changes in 1.4.2 also. https://docs.djangoproject.com/en/dev/releases/1.4.2/ Cheers On Wed, Apr 16, 2014 at 11:13 AM, Lucas Klassmann wrote: > Hi, > > Check documentation: https:

Re: Upgrading from 1.4.3 to 1.4.10

2014-04-16 Thread Tom Evans
On Wed, Apr 16, 2014 at 3:08 PM, wrote: > How do I discover what changed between Django 1.4.3 and 1.4.10? > > Will require changes to my code, or will it just work? There should be no breaking changes for minor-minor* upgrades unless required to fix a security issue. I'm not aware of any in 1.4.

Missing ORDER BY in subselect?

2014-04-16 Thread Gregor Jerše
Hi! I am experiencing a weird Queryset behavior. Let the variable treatments refer to an ordered (and sliced) queryset. The first query Service.objects.filter(treatment__in=treatments).distinct() returns different objects than the second one Service.objects.filter(treatment__in=list(treatment

Re: Missing ORDER BY in subselect?

2014-04-16 Thread Simon Charette
I pretty sure this is related to #22434 . There's a patch on Github I'm actually reviewing and it's looking pretty good. If all goes well it should make it to Django 1.7. Le mercredi 16 avril 2014 15:16:0

Re: Pluggable crowdfunding django apps

2014-04-16 Thread Mike Dewhirst
Andres What does the app do? More particularly, does it manage crowd funding for a particular project on your own website or perhaps it is more generic for others to launch various projects ... Thanks Mike On 16/04/2014 7:37 AM, Andres Osinski wrote: I have a small crowd funding app that I

Re: How to create Union in Django queryset

2014-04-16 Thread Russell Keith-Magee
On Wed, Apr 16, 2014 at 9:30 PM, Shoaib Ijaz wrote: > Sorry for duplicate post How to create Union > > I am using Django REST Framework in project and I want to create union two > different Models. > > My Models > > class A(models.Model): > name = models.CharField(max_length=240, blank=True) >

How to store variable length list of dict-type objects with FKs in Django SQL DB

2014-04-16 Thread Kreychek
Let's say I'm getting some JSON in the format of... "fellowPlayers": [ { "championId": 110, "teamId": 100, "summonerId": 34258805 }, { "championId": 9, "teamId": 100, "s

what's the best admin skin (free)

2014-04-16 Thread Bobby Roberts
hey group. I've been out of the loop for a few years now. What is the best skin for admin? Is Grapelli still good? -- 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 em

Re: How to store variable length list of dict-type objects with FKs in Django SQL DB

2014-04-16 Thread Kreychek
To clarify, I have a model, let's call it MatchHistory, that stores a fixed set of statistics about a match (ex. points, kills, etc). Example JSON for the stats: u'stats': { u'assists': 2, u'championsKilled': 6, u'doubleKills': 1, u'goldEarned': 7613,

Including Page Fragments

2014-04-16 Thread Venkatraman S
Just saw a weird problem while including template fragments: Works : {% include "page.html" with one_variable="1" %} Does not because of the space during the variable assignment : {% include "page.html" with one_variable = "1" %} Regards, Venkat -- You received this message because you ar

Re: Upgrading from 1.4.3 to 1.4.10

2014-04-16 Thread nu . everest
Thanks those release notes were very helpful. On Wednesday, April 16, 2014 7:08:22 AM UTC-7, nu.ev...@gmail.com wrote: > > How do I discover what changed between Django 1.4.3 and 1.4.10? > > Will require changes to my code, or will it just work? > -- You received this message because you are s

Re: How to create Union in Django queryset

2014-04-16 Thread Shoaib Ijaz
I don't want use SQL query in django On Thursday, 17 April 2014 04:39:09 UTC+5, Russell Keith-Magee wrote: > > On Wed, Apr 16, 2014 at 9:30 PM, Shoaib Ijaz > > > wrote: > > Sorry for duplicate post How to create Union > > > > I am using Django REST Framework in project and I want to create un