I really needed an in-place migration as reloading tens of millions of
entries was not practical.
I ended up using the migrations I mentioned with one migration per M2M
intermediate table to avoid locking multiple tables at once.
Cheers,
Jeremy
On Monday, May 16, 2022 at 7:07:19 PM UTC+2 makza.
First you need to create table structure in the PostgreSQL, then after
import the data into the respective tables.
Makrand Zare
+919930102832
makzare1...@gmail.com
On Sun, May 15, 2022, 1:55 PM Mike Dewhirst wrote:
> On 14/05/2022 11:44 pm, Jeremy Lainé wrote:
>
> Hi!
>
> I'm currently looking
users
Subject: Re: Migrating ManyToManyField to
bigint? Hi Mike,Thanks for the reply. For future reference, it was pointed out
to me that I missed both an explicit note in the documentation [1] and an issue
tracking a potential change in the future [2].Do you have any suggestions as to
the
Answering myself, AFAICT I need to create migrations which look like the
following for every m2m intermediate table. The following assumes a "Book"
model which has a ManyToMany relationship to a "Tag" model:
from django.db import migrations
class Migration(migrations.Migration):
dependenc
Hi Mike,
Thanks for the reply. For future reference, it was pointed out to me that I
missed both an explicit note in the documentation [1] and an issue tracking
a potential change in the future [2].
Do you have any suggestions as to the actual SQL migration which needs to
be applied for postgr
On 14/05/2022 11:44 pm, Jeremy Lainé wrote:
Hi!
I'm currently looking at how to migrate all my models from AutoField
to BigAutoField. For all the explicitly defined models the process
seems pretty straightforward:
* change DEFAULT_AUTO_FIELD to BigAutoField
* generate migrations
* appl
Hi!
I'm currently looking at how to migrate all my models from AutoField to
BigAutoField. For all the explicitly defined models the process seems
pretty straightforward:
- change DEFAULT_AUTO_FIELD to BigAutoField
- generate migrations
- apply migrations
However, when I inspect the da
Yes, my example is not right. Both should be the same!
nader...@gmail.com schrieb am Donnerstag, 19. August 2021 um 16:59:01 UTC+2:
> I noticed that subassembly 6 has different components in use. Is that what
> you want.
>
> On Wed, Aug 18, 2021, 10:57 AM M. GW wrote:
>
>> Hi,
>>
>> I am now tr
Hey,
thank you. I tried your approach and is looks very promising but I am
getting an error. Here is my view:
*class AssemblyDetailView(LoginRequiredMixin, DetailView):*
*model = Assembly*
*template_name = "engineering/assembly/assembly_detail.html"*
*assem = Assembly.objects.all()*
I noticed that subassembly 6 has different components in use. Is that what
you want.
On Wed, Aug 18, 2021, 10:57 AM M. GW wrote:
> Hi,
>
> I am now trying, for days, to get a tree like view from my assembly model
> into my template. I think I have read everything what I have found on
> StackOver
I would create two dictionaries, one for subassembly and one for component.
then in your view, loop through the first group, pulling your data from a
master dataset:
assem = Assembly.objects.all()
sa = assem.subassembly.all()
comp = assem.component.all()
send 'sa' and 'comp' to your template as
Hi,
I am now trying, for days, to get a tree like view from my assembly model
into my template. I think I have read everything what I have found on
StackOverflow and other sites. Somehow I am not able to get it working. I
am trying to not use any 3rd party extensions => I'm happy to be proven
i have a model
share=model.manytomanyfield(User)
In this share section i don't want the current login user should not come
in this manytomanyfield list
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
Nice solution. Thanks!
On Thursday, June 25, 2020 at 5:49:23 PM UTC-4, Dan Madere wrote:
>
> I don't know of a way to configure the admin do that, but one solution
> would be to use signals to notice when one-way records are created, then
> automatically create the record for reverse relationshi
is going on.
>
> Basically, for symmetric ManyToManyField, Django creates entries for both
> directions automatically if the correct interface is used. From the test
> models:
>
> class PersonSelfRefM2M(models.Model):
> name = models.CharField(max_length=5)
> sym_
After reviewing the tests, I think I now understand what is going on.
Basically, for symmetric ManyToManyField, Django creates entries for both
directions automatically if the correct interface is used. From the test
models:
class PersonSelfRefM2M(models.Model):
name = models.CharField
capability in
https://github.com/django/django/tree/master/tests/m2m_through which seems
to indicate that it does work.
I updated my version of Django to 3.1.b1 and copied the models and tests
into my code. Neither the admin nor queries on the ManyToManyField return
the full "symmetric
I tried out the example code, and can replicate this. What's interesting is
that if I try removing the ContactConnection model, and the "through"
attribute, this allows Django to create the intermediate table on its own,
and then your get_connections() method works as expected! It seems like
us
Mike, Thanks for your suggestions.
Just a stab in the dark - have you tried giving from_contact a
> related_name?
>
Yes, I have tried a few different combinations of providing a single
related_name and various naming conventions when providing related_name on
both ForeignKey fields without s
On 25/06/2020 8:29 am, Jim Shepherd wrote:
I am unable to get a symmetrical, self-referencing ManyToManyField
with a through table to actually be symmetrical, at least through the
Admin interface. I am using Django 3.0 so it looks like the capability
is supported.
Models:
class Contact
I am unable to get a symmetrical, self-referencing ManyToManyField with a
through table to actually be symmetrical, at least through the Admin
interface. I am using Django 3.0 so it looks like the capability is
supported.
Models:
class Contact(models.Model):
last_name = models.TextField
I'm having an issue displaying a ManyToManyField in a character profile
template using Django.
The template has to show an avatar, alongside some information about the
character, including a list of guilds this character had joined. But, when
I try to display that list, it appears as if
n this link
> <https://stackoverflow.com/questions/59795851/django-rest-manytomanyfield-with-slugrelatedfield-data-is-not-being-created>
> (Stack
> Overflow).
>
> In resume, I can't create a new object on database using SlugRelatedField
> by the method create() and I receive
Hello friends!
I have a detailed question on this link
<https://stackoverflow.com/questions/59795851/django-rest-manytomanyfield-with-slugrelatedfield-data-is-not-being-created>
(Stack
Overflow).
In resume, I can't create a new object on database using SlugRelatedField
by the me
How can I filter a queryset inside the Admin page of an object that has a
ManyToManyField relation with a manually defined through model?
Given models.py
class Foo(models.Model):
foo_field1 = models.CharField(max_length=50)
class Main(models.Model):
main_field1 = models.CharField
Hi,
model.many_to_many_atribute.all()
model.many_to_many_atribute.find(name="carl")
El lun., 24 jun. 2019 a las 19:18, Charlotte Wood (<
charlotte.w...@epiccharterschools.org>) escribió:
> HELP!
>
> Do ManyToManyFields just not print?
>
> I see them in my form selection.
>
> Everything works fi
HELP!
Do ManyToManyFields just not print?
I see them in my form selection.
Everything works fine, but when I try to put the linked item on a list
form, i get: project.model.none for the value. I cannot figure out how to
make all the values print. HELP! PLEASE!!
--
You received this messa
I feel something like this is what I need
select obj,name,png from items_monolithic, items_facepng where object==obj;
But I do not know how to do that in Django.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
I do not understand how to get my queryset from the ManyToManyField in my
ListView
*Models*
class Monolithic(models.Model):
obj = models.CharField( max_length=128, blank=False, null=False, unique=
True)
face2 = models.ManyToManyField(FacePng)
class FacePng(models.Model):
obj
I think these ones really good:
https://docs.djangoproject.com/en/2.2/topics/db/examples/many_to_many/
On Mon, 8 Apr 2019 at 14:08, Khushal Kumar wrote:
>
>
> Hi,
>
>
>
> Can anyone please give me an example which will demonstrate how
> manytomanyfield works in Django.
Hi,
Can anyone please give me an example which will demonstrate how manytomanyfield
works in Django.
Thanks
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
ably couldn't so I created my tables in MySQL. Now
I'm trying to add a ManyToManyField between 2 models but am not
sure how the MySQL syntax is supposed to look like.
This is my current code:
from django.db import models
class Publication(models.Model):
title = mo
work but
> miserably couldn't so I created my tables in MySQL. Now I'm trying to add a
> ManyToManyField between 2 models but am not sure how the MySQL syntax is
> supposed to look like.
>
> This is my current code:
>
> from django.db import models
>
>
I tried for hours to get django's migrate/makemigrations function work but
miserably couldn't so I created my tables in MySQL. Now I'm trying to add a
ManyToManyField between 2 models but am not sure how the MySQL syntax is
supposed to look like.
This is my current code:
from d
2 10:03 GMT-03:00 Jean-Baptiste Pressac > >:
>>
>>> Hello,
>>> On Django 1.8 + Python 2.7.11, I have declared in Django admin.py an
>>> oeuvre class with a ManyToManyField (types) to an TypeOeuvre class.
>>>
>>>
>>> clas
gt; Hello,
>> On Django 1.8 + Python 2.7.11, I have declared in Django admin.py an
>> oeuvre class with a ManyToManyField (types) to an TypeOeuvre class.
>>
>>
>> class Oeuvre(models.Model):
>> titre = models.CharField(max_length=510)
>> types =
n.py an
> oeuvre class with a ManyToManyField (types) to an TypeOeuvre class.
>
>
> class Oeuvre(models.Model):
> titre = models.CharField(max_length=510)
> types = models.ManyToManyField('TypeOeuvre',
>blank=True,
>
Hello,
On Django 1.8 + Python 2.7.11, I have declared in Django admin.py an oeuvre
class with a ManyToManyField (types) to an TypeOeuvre class.
class Oeuvre(models.Model):
titre = models.CharField(max_length=510)
types = models.ManyToManyField('TypeO
Thanks
On Friday, November 11, 2016 at 4:05:32 PM UTC+2, Artem Bernatskyy wrote:
>
> If i add ManyToManyField through intermediary table with "help text" and
> run makemigrations
> there will be created 'dummy migration' which doesn't have any sense
> and
There's a known bug that help_text=_("") triggers infinite migrations,
perhaps you could add your use case to the ticket.
https://code.djangoproject.com/ticket/24964
On Friday, November 11, 2016 at 9:05:32 AM UTC-5, Artem Bernatskyy wrote:
>
> If i add ManyToManyField throu
If i add ManyToManyField through intermediary table with "help text" and
run makemigrations
there will be created 'dummy migration' which doesn't have any sense
and when i call lt repeatingly for example
'./manage,py makemigrations && ./manage,p
Hi,
I noticed this behavior when changing the case of a app/model/field name.
See if the name has the same case in the initial creation migration and in
the model.
Cheers,
Olivier
On 27 Sep 2016 03:39, "Marvin Mednick" wrote:
> I've the the following models related to a many-to-many relations
On 27/09/2016 6:58 AM, Marvin Mednick wrote:
I've the the following models related to a many-to-many
relationship.  (Django 1.9.4 and sqlite)
Each time I run makemigrations, it generates an AlterField migration,
which migrate successfully executes (no errors), but running
makemigrations
I've the the following models related to a many-to-many relationship.
(Django 1.9.4 and sqlite)
Each time I run makemigrations, it generates an AlterField migration, which
migrate successfully executes (no errors), but running makemigrations again
will generate the identical migration.
Ever
The solution was that I needed to set symmetrical=False, per the
documentation
here:
https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.ManyToManyField.symmetrical
On Tuesday, July 19, 2016 at 2:52:16 PM UTC-4, Farhan Khan wrote:
>
> I am using a ManyToManyField
I am using a ManyToManyField whose target is a 'self' reference, but it
does not create a related_name "reverse" field.
Here is my model:
class SecurityGroup(models.Model):
name = models.CharField(max_length=100)
description = models.TextField()
subgroups = mo
Basically, I need to order, based on multiple values from a ManyToManyField.
So what I want to achieve is having the objects with the most questioned
values on top, continuing with objects that have less of the questioned
values. Continuing with objects that don't have any of these v
Hi Bruce,
You need to call `contact.relationship.all` instead of
`contact.relationship_set.all`
We use `_set.all` when we want to retrieve the related items from the
master/parent object (Relationship in your case). So if you want to
retrieve all contacts under a relationship you can use
`.re
On Thursday, 26 May 2016 18:43:00 UTC+1, Bruce Whealton wrote:
>
> Hello all,
> I started a similar thread but couldn't find it.
> I was creating a Personal Information Management Project, with Project
> name mypim. My first app was a contacts app.
> This has two Class based Models in the mo
I have that in the contacts/views.py
However, I don't know if it needs the context dictionary to have something
which would
connect a contact to many categories.
Thanks,
Bruce
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
Hi Bruce,
I think you want to call get_object_or_404 with the Contact model in your
contact_detail() view.
Cheers,
Simon
Le jeudi 26 mai 2016 13:43:00 UTC-4, Bruce Whealton a écrit :
>
> Hello all,
> I started a similar thread but couldn't find it.
> I was creating a Personal Information Ma
Hello all,
I started a similar thread but couldn't find it.
I was creating a Personal Information Management Project, with Project name
mypim. My first app was a contacts app.
This has two Class based Models in the models.py in the contacts directory.
My first view works fine, where I disp
I just discovered django-select2-forms. It does exactly what I want, very
simple to implement.
On Tuesday, November 10, 2015 at 5:08:46 PM UTC-5, Mark London wrote:
>
> I want to use a select2 widget to a manytomanyfield in django. There are
> several django-select2 modules
I want to use a select2 widget to a manytomanyfield in django. There are
several django-select2 modules, but the documentation on all of them is
confusing. Can someone point me to a simple example of how to use a
select2 widget for a manytomanyfield? Thanks. - Mark
--
You received this
Question on
Stackoverflow:
http://stackoverflow.com/questions/33486705/define-an-order-for-manytomanyfield-by-through-model-field-with-django
class ProductRelation(models.Model):
product_a = models.ForeignKey('Product', related_name='c+')
> Den 14/07/2015 kl. 23.32 skrev A Lee :
>
> I'd like to change a ForeignKey field into a ManyToManyField, preserving
> existing data by creating entries in the many-to-many through table. Running
> makemigrations after changing the model class creates a migratio
I'd like to change a ForeignKey field into a ManyToManyField, preserving
existing data by creating entries in the many-to-many through table.
Running makemigrations after changing the model class creates a migration
that executes a RemoveField on the existing ForeignKey field and th
Hi all,
I have an application with Django with database routers. Basically I got
the request path, split it to get subdomain name and set the database by
this way.
I do not use default database, so I do not migrate it.
This route action It's working very well but I am still facing trouble when
)
model_instance.tags.add(t)
return HttpResponseRedirect("/")
Best regards, Pavel
Help me, django-users, you're my only hope :D
>
> Hi all, my name is Filippo, I'm from Italy and I'm totally stuck on this
> problem...
>
> I have a model with a ManyToManyF
Help me, django-users, you're my only hope :D
Hi all, my name is Filippo, I'm from Italy and I'm totally stuck on this
problem...
I have a model with a ManyToManyField and in my view I want to be able to
add new options to the generated selectbox.
How can I handle those
red it might be useful to see some of the
>>> comments users on that site have suggested. If this is not acceptable let me
>>> know and i'll post everything here.
>>> Thanks!
>>>
>>>
>>> http://stackoverflow.com/questions/29190190/django-programmin
stackoverflow.com and so I figured it might be useful to see some of the
>> comments users on that site have suggested. If this is not acceptable let
>> me know and i'll post everything here.
>> Thanks!
>>
>>
>> http://stackoverflow.com/questions/291
relation-exists-when-using-manytomanyfield?noredirect=1#comment46603898_29190190
>
--
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...@
tions/29190190/django-programmingerror-no-relation-exists-when-using-manytomanyfield?noredirect=1#comment46603898_29190190
--
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, se
through each PartModel and then iterate
> through the PartModels associated (through a self-referential
> ManyToManyField) with the PartModel in question. I am doing everything I'm
> supposed to be doing according to my reading of the "entry_set syntax"
> section of t
Hey All:
I need my template to iterate through each PartModel and then iterate
through the PartModels associated (through a self-referential
ManyToManyField) with the PartModel in question. I am doing everything I'm
supposed to be doing according to my reading of the "entry_
t;> RATING = [(y, y) for y in range(1, 7)]
>>>
>>> interest = models.CharField(max_length=40)
>>> interest_rating = models.SmallIntegerField(choices=WEIGHT)
>>>
>>>
>>> class CustomUserprofileInterests(models.Model):
>>>
>&g
Interests, through='CustomInterests',
>> through_fields=('custominterest', 'interest'),
>> null=True, blank=True)
>>
>>
>> class CustomInterests(models.Model):
>>
>> WEIGHT = [(y, y) for y in r
t = models.ForeignKey(Interests)
> custominterest = models.ForeignKey(CustomUserprofileInterests)
> rating = models.SmallIntegerField(choices=WEIGHT)
>
>
> I want to accomplish a rating on each relation in the 'interests =
> ManyToManyField' in my Custom
ield(choices=WEIGHT)
I want to accomplish a rating on each relation in the 'interests =
ManyToManyField' in my CustomUserprofile. The Interests-Model HAS to have
an OWN, self relating rating in each 'interest' entry, NOT related to the
CustomUserprofile.
Startet lot of inve
This may look totally crazy, but does this do what you want?
People.objects.filter(people=None)
It may make more sense to do this:
class Person(models.Model):
children = models.ManyToManyField('self', blank=True, related_name=
'parents')
Person.objects.filter(parents=None)
--
You received t
Hello,
I have it model:
class People(models.Model):
> children = models.ManyToManyField('self', blank=True, null=True)
I want to filter the first of each family tree. *Knowing that children can
have children
How I do it?
People.objects.filter()
--
You received this message because
I have the following object structure:
class Car(models.Model):
name = models.CharField(max_length=16)
class Person(models.Model):
name = models.CharField(max_length=32)
cars = models.ManyToManyField(Car, through='Relationship')
parent = models.ForeignKey('self', null=True, blank=
Solved! It turned out the problem only occurred trying to uncheck the last
checkbox. I needed to set blank=True on the ManyToManyField.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiv
Good day,
This is a somewhat contrived example, but I'm having the same problem in a
real project.
Assuming continents have many countries, and countries can belong to many
continents, I have a continent_country "junction" table in the database and
am using ManyToManyF
I tested this with SQLite3 and it worked, using your models:
>>> a.users = User.objects.all()
>>> a.save()
>>> a.delete()
>>> a = AccountTypeA(name='')
>>> a.save()
>>> a.users = User.objects.all()
After that:
sqlite> select * from testapp_accounttype_users;
1|1|1
Which is what I should expe
Hi,
I've run into interesting issue and I'm not sure if I do something wrong or
this is Django issue. I'm using Multi Table Inheritance:
from django.db import models
from django import forms
class AccountType(models.Model):
users = models.ManyToManyField('auth.User', related_name='accounts
when I syncdb and use south schemamigration, I still can't get the
ManyToManyField to show up.
what am I doing wrong. Any parameters I can pass to make it work?
Thank you guys
class Products(models.Model):
#product_id = models.AutoField(primary_key=True)
hs_number = models.Char
Did you add this field after you had already run syncdb? If so, you won't
see it running syncdb again, that command only adds new models, it does not
pick up modifications to models.
You have a couple of options.
1) If you are in development, you can just drop your existing database and
use sy
I am trying to do a ManytoManyField through a middle Table. After I run
syncdb, I do not see the column in pdadmin.
What am I doing wrong?
Here is my code
class Countries(models.Model):
country_name = models.CharField(max_length=200)
country_id = models.CharField(primary_key=True
t;>> On Wednesday, February 26, 2014 11:28:05 AM UTC-6, cool-RR wrote:
>>>>>
>>>>>> Sorry, space doesn't do the toggle. (Windows 7 Chrome.)
>>>>>>
>>>>>>
>>>>>> On Wed, Feb 26, 2014 at 6:43 PM, C. Kirby wrote:
>
2014 11:28:05 AM UTC-6, cool-RR wrote:
>>>>
>>>>> Sorry, space doesn't do the toggle. (Windows 7 Chrome.)
>>>>>
>>>>>
>>>>> On Wed, Feb 26, 2014 at 6:43 PM, C. Kirby wrote:
>>>>>
>>>>>
Sorry, space doesn't do the toggle. (Windows 7 Chrome.)
>>>>
>>>>
>>>> On Wed, Feb 26, 2014 at 6:43 PM, C. Kirby wrote:
>>>>
>>>>> While holding Ctrl (Command on a Mac), click the spacebar on the
>>>>> relations you w
ommand) keeps you in
>>>> multi-select mode
>>>>
>>>> On Wednesday, February 26, 2014 6:12:09 AM UTC-6, cool-RR wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> How do I control the admin ManyToManyField widget with th
ode
>>>
>>> On Wednesday, February 26, 2014 6:12:09 AM UTC-6, cool-RR wrote:
>>>>
>>>> Hi,
>>>>
>>>> How do I control the admin ManyToManyField widget with the keyboard?
>>>>
>>>>
>>>> Thanks,
multi-select mode
>>
>> On Wednesday, February 26, 2014 6:12:09 AM UTC-6, cool-RR wrote:
>>>
>>> Hi,
>>>
>>> How do I control the admin ManyToManyField widget with the keyboard?
>>>
>>>
>>> Thanks,
>>> Ram.
>>&
multi-select mode
>
> On Wednesday, February 26, 2014 6:12:09 AM UTC-6, cool-RR wrote:
>>
>> Hi,
>>
>> How do I control the admin ManyToManyField widget with the keyboard?
>>
>>
>> Thanks,
>> Ram.
>>
> --
> You received this message beca
ol the admin ManyToManyField widget with the keyboard?
>
>
> Thanks,
> Ram.
>
--
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
Hi,
How do I control the admin ManyToManyField widget with the keyboard?
Thanks,
Ram.
--
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-user
Hello,
I have a Person model with a ManyToManyField with itself through a Relation
model to declare relations like Paul is Julie's uncle :
class Relations(models.Model):
id_person= models.ForeignKey('Person',
related_name='relation_id_person')
id_relation =
You need to register the admin classes defined in admin.py. If you don't know
how, go over the official tutorial in Django's online docs.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails f
I am new comer I struggle to save a record using admin page .
What extra ethod should I add to save ContestScore record.
Thanks.
class School(models.Model):
school_name = models.CharField(max_length=30)
school_city = models.CharField(max_length=30)
coach_name = models.CharField(max_le
models, but I am still uncertain.
So you have a set of possible field values, and want to be able to group those
into different sets for a form, right?
class FieldValues(models.Model):
name = CharField()
pass
class FieldGroups(models.Model):
group_name = CharField()
values = ManyT
He Thomas, ur right i didnt explain myself very well.
What im trying todo is this.
I have a mode that holds all my form field values in difrant group , name:
Keuzes
Now i want to populate multiple form fields with these values based on wich
groep i want them to be.
I onloy seem to get this t
my guessing ;)
Assuming that those ManyToManyField lines are in a model, here is the problem.
The related_name argument helps you to access the values in that model from
Keuzes, using syntax like "keuzes_kleurogen__mykleurogenfield". But the model
definitions will result in only one inter
anyone willing to help out?
--
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 djang
mm that seems to not work when i do it on multiple field
kleurogen = models.ManyToManyField(Keuzes, blank=True, null=True)
kleurhaar = models.ManyToManyField(Keuzes, blank=True, null=True)
django.core.management.base.CommandError: One or more models did not
validate:
profielen.profielen: Acces
i think i got it, i was foing it at the wrong spot.
i added this to my forms.py
kleurogen =
forms.ModelMultipleChoiceField(queryset=Keuzes.objects.filter(groep_id=
'kleurogen'))
works like a charm
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
oesnt work
kleurogen = models.ManyToManyField(Keuzes.objects.filter(groep_id=
"kleurogen"), blank=True, null=True)
AssertionError: ManyToManyField([, ]) is
invalid. First parameter to ManyToManyField must be either a model, a model
name, or the string 'self'
How can i do t
On 15/07/2013 1:02am, Charounson Saintilus wrote:
This is my first time using the Django Web Framework and I'm new to the
python language, so please bear with me.
I've created a model (i.e. a class) called Course which defines several
variables:
class Course(models.Model):
name = models
1 - 100 of 631 matches
Mail list logo