hey list,
I have a custom Field implemented for one of my models. How do I
implement the database operations (e.g. '==', '!=') for the custom field
which are used to execute database queries?
bg,
Johannes
--
Johannes Schneider
Webentwicklung
johannes.schnei...@galileo-press.de
Tel.: +49.228.4
Hi!
In python, '==' operator is set to '__eq__' and '!=' operator is set
to '__ne__' functions.
See more details in http://jcalderone.livejournal.com/32837.html
And In order to make queries from the ORM, Django uses Managers
https://docs.djangoproject.com/en/dev/topics/db/managers/
So you can w
Kirby,
You have a good point. However, in this use case I am dealing with
a jewelry store buying gold at their "market" rate. It is not the same as
owning gold and the value changes based on a published (ie available
through an API) rate. The jewelry store market rate for gold changes
slowly, and
Hello.
I am trying to put together a little test application which allows a user
to log in to a CAS server and then redirects them back to the site after
they have logged in. I have followed the instructions on this page:
https://bitbucket.org/cpcc/django-cas/overview.
The URL for my serv
try to set your login url to: http://127.0.0.1:8000/accounts/login while
you testing.
Tobias
On 19 February 2014 15:04, wasingej wrote:
> Hello.
>
> I am trying to put together a little test application which allows a user
> to log in to a CAS server and then redirects them back to the site a
Hi there,
you have to put the absolute url for CAS_SERVER_URL
try CAS_SERVER_URL=http://login.oregonstate.edu-dev/login (or https)
Regards,
Esau Rodriguez.
On Wed, Feb 19, 2014 at 6:04 PM, wasingej wrote:
> Hello.
>
> I am trying to put together a little test application which allows a user to
I am a Django newbie.
I expect that Django could be a good platform to build a force.com like
application platform: a platform where business experts can define business
data models, authorization rules (which user role can access or edit what
parts of a model in what state) and workflow rul
The problem is fixed. Thanks esauro :)
Jared
--
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,
If I am not mistaken you are trying to alter how
.filter(customfield__eq=val) and friends work.
In current Django versions you can't easily customize the SQL generated for
ORM lookups. In Django 1.7 (currently in alpha) this is possible using
custom lookups. Custom lookups will allow you to alt
Hi there,
I have the model below:
class Ticket(models.Model):
REAL = 'R'
FREE = 'F'
TYPES = (
(REAL, 'Real'),
(FREE, 'Free'),
)
amount = models.DecimalField()
user = models.ForeignKey(User)
class Pick(models.Model):
ticket_id = models.ForeignKey(Ticke
You can use an admin custom insert form
With stackedinline
Jonathan Querubina
Diretor de Tecnologia
+55(12)98864-1594
www.phocus.com.br
> On Feb 19, 2014, at 19:24, Henrique Oliveira
> wrote:
>
> Hi there,
>
> I have the model below:
>
> class Ticket(models.Model):
> REAL = 'R'
>
Felipe,
Sorry, I'm quite busy these days.
Here is the beginning of something, but I'd prefer to avoid the 'myurl'
function. I'm not a dev' so you'll probably jump looking at that.
The base idea was to use only 'mypatterns' for obtainning the same
results we handwritten previously, including
12 matches
Mail list logo