User.objects.get(***) or User.objects.filter(***)[0] replacing the ***
with the criteria you want to use to return the specific user you
want.

Jeff

On Mon, Nov 21, 2011 at 9:48 AM, Kerrisha Nelson
<[email protected]> wrote:
> I am editing the upload/data section of GeoNode. I want only the system
> administration to upload data to GeoNode. I want to create a code in the
> uploadhandler.py to allow a specfic user to upload. If any other user want
> to upload, they will not be able to. Therefore, I need a python syntax that
> will refer to a specific username.
>
> On Sun, Nov 20, 2011 at 6:24 PM, Jeffrey Johnson <[email protected]>
> wrote:
>>
>> Kerrisha,
>>
>> Are you making your own new model class? Not exactly sure what you are
>> trying to do, but if you can provide more detail, we are happy to help
>> you figure it out.
>>
>> Jeff
>>
>> On Mon, Nov 21, 2011 at 9:20 AM, Kerrisha Nelson
>> <[email protected]> wrote:
>> > How do I make a reference to a specific user in geonode specifically in
>> > the
>> > django administration portion?
>> >
>> > Thanks
>
>

Reply via email to