pk=choice.pk)
>
> On Jan 28, 2016, at 2:16 AM, dave.l >
> wrote:
>
> Hi,
>
> I am happy with my models, and I'm fine inserting data, what I would like
> help with is retrieval.
>
> given a single instance of a Studio() I can get
> studio.studiogroup_set.all
re are the problem ?in the admin first add Studio
> and sfter this select on the field studio from class studiogroup one or
> more entries from the class studio so simple,
>
> christos
>
> Τη Τετάρτη, 27 Ιανουαρίου 2016 - 5:50:21 μ.μ. UTC+2, ο χρήστης dave.l
> έγραψε:
>>
&g
Hi,
I have recently returned to a Django project after a few years and I'm a
little rusty on ManyToMany fields.
Here's my very simple models:
class Studio(models.Model):
name = models.CharField(max_length=255, unique=True)
class StudioGroup(models.Model):
description = models.CharFiel
Hi Karen,
Thank you! I was just being blind -- I'd looked at that paragraph and
the double underscore just went in one eye and out the other and
didn't register as being different to the old format...
doh.
--
You received this message because you are subscribed to the Google Groups
"Django us
Hi!
The following line in my application seems to have stopped working as
I expect:
for object in self.queryset.select_related().order_by
("app_building.principal_name", "reference"):
the first ordering term on principal_name is no longer working. by
looking at ...query.as_sql() I can see th
Of course! Sometimes it's too easy to forget that not everything is as
hot-swappable and dynamic as django!
Many thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
I have a model as follows:
class Building(meta.Model):
survey_date = meta.DateField(null=True)
check_date = meta.DateField(null=True, blank=True)
researcher = meta.ForeignKey(Researcher)
I was hoping that this would let me have a blank check_date (w
Hi Adrian,
Thank you for your swift reply.
1) Perfect! sorted menus
2) I get a 1054, "Unknown column 'coils_buildings.principal_name' in
'order clause'" doing this
class Building(meta.Model):
class META:
ordering = ('principal_name',)
admin = meta.Admin()
class Window(meta.
I have been playing with Django for only a day or so but have had great
success coercing a legacy database into the Django world. I have
quickly found that the Admin interface *nearly* provides all the
editing features I currently need for updating my DB and I think it
would be a great shame to l
9 matches
Mail list logo