Sorry, my earlier suggestion for Institute.members is incorrect. Here's the
correct code:
def members(self):
return self.user_set.all()
For example, if foo is an institute, then foo.user_set.all() would give all
users related to that institution.
Dartos
On Friday, May 5, 2017 at 11:
()
Dartos
On Friday, May 5, 2017 at 8:41:52 AM UTC-4, Tobias Dacoir wrote:
>
> I am trying to build a model (in two separate apps) which has the
> following constraints:
>
> - There can be many institutes
> - there can many users
> - each user is a member of exactly o
html" %}
Also, pay attention to capitalization of filenames, as "Error.html" and
"error.html" are different files on many systems. I use all-lowercase to
avoid issues.
Dartos
On Wednesday, May 3, 2017 at 10:00:37 AM UTC-4, Thiago Luiz Parolin wrote:
>
> I
Hi,
Do you have "import select2" in models.py?
Dartos
On Tuesday, May 2, 2017 at 6:16:47 AM UTC-4, shahab emami wrote:
>
> hello
>
> I want to use django-select2-forms in my project . this package is here:
> https://pypi.python.org/pypi/django-select2-forms/2.0.1
rence for django 1.11:
https://github.com/django/django/blob/1.11/django/template/base.py#L869
Regards,
Dartos
On Tuesday, April 25, 2017 at 7:07:08 AM UTC-4, Shamaila Moazzam wrote:
>
> hi,
>
> i am trying to display a set of images with the use of index.
> here is the code:
>
5 matches
Mail list logo